From ac13d09511caef4404f23170bbca2d4a7d120f79 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 27 Oct 2012 17:59:05 +0200 Subject: [PATCH] conf.py: Prevent traceback if server address is an IPv6 address. Signed-off-by: James McCoy --- src/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.py b/src/conf.py index b8506e5df..f23506b63 100644 --- a/src/conf.py +++ b/src/conf.py @@ -223,7 +223,7 @@ class Servers(registry.SpaceSeparatedListOfStrings): def convert(self, s): s = self.normalize(s) - (server, port) = s.split(':') + (server, port) = s.rsplit(':', 2) port = int(port) return (server, port)