Fix use of rsplit for IPv6 addresses.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
Valentin Lorentz 2013-07-02 13:18:57 +02:00 committed by James McCoy
parent 0283bb7f9a
commit 01a6ed6540

View File

@ -223,7 +223,7 @@ class Servers(registry.SpaceSeparatedListOfStrings):
def convert(self, s):
s = self.normalize(s)
(server, port) = s.rsplit(':', 2)
(server, port) = s.rsplit(':', 1)
port = int(port)
return (server, port)