[Server] Fix IPv6 server addresses with port

master
Sfan5 2013-07-14 23:18:19 +02:00
parent 9d80d3a27b
commit 87953af312
1 changed files with 2 additions and 0 deletions

View File

@ -235,6 +235,8 @@ def server(phenny, input):
name = choice["name"]
address = choice["address"]
if choice["port"] != "30000":
if ':' in address: # IPv6
address = "[" + address + "]"
address += ":" + choice["port"]
clients = choice["clients"]
try: