conf.py: Prevent traceback if server address is an IPv6 address.

This commit is contained in:
Valentin Lorentz 2012-10-27 17:59:05 +02:00
parent d05506ee22
commit 929090c279
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,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)