This commit is contained in:
mossimo
2021-08-03 15:56:33 +08:00
parent 9c755091c3
commit de8bd62033
@@ -41,7 +41,7 @@ namespace System.Net.WebSocket
throw new ArgumentException("Invalid IP address");
var random = new Random();
port = random.Next(10000, 25564);
while (!IsPortOccupedFun(port))
while (IsPortOccupedFun(port))
{
port = random.Next(10000, 25564);
}