From 87953af31249ac24cdd14ed881d2fc777ba9c148 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Sun, 14 Jul 2013 23:18:19 +0200 Subject: [PATCH] [Server] Fix IPv6 server addresses with port --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index 37d8f2a..d303915 100755 --- a/server.py +++ b/server.py @@ -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: