Fixed a small bug.

This commit is contained in:
Emiliana 2020-10-15 17:58:35 +02:00
parent 1325e13558
commit 46e26f59f6

View file

@ -306,7 +306,7 @@ public class OpenSeeLauncher : MonoBehaviour {
if (inUse[i].Port < port)
continue;
if (inUse[i].Port == port) {
if (port <= openSeeTarget.listenPort + 500 && port <= inUse[i].MaxPort) {
if (port <= openSeeTarget.listenPort + 500 && port <= IPEndPoint.MaxPort) {
port++;
continue;
} else {