Port max value was incorrect

This commit is contained in:
Alve Svarén committed 2020-10-09 18:58:19 +02:00
1 parent 9188530f4e
commit d07293af9f
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ def gen_file(region_name: str, ip_address: str = "127.0.0.1", port: int = 22023)
raise ValueError("Region name too long")
if (len(ip_address) > 0xff):
raise ValueError("IP-address too long")
if (port > 0xffff * 5):
if (port > 0x7fff):
raise ValueError("Port too high")
# Append region name