mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fix use of rsplit for IPv6 addresses.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
0283bb7f9a
commit
01a6ed6540
@ -223,7 +223,7 @@ class Servers(registry.SpaceSeparatedListOfStrings):
|
|||||||
|
|
||||||
def convert(self, s):
|
def convert(self, s):
|
||||||
s = self.normalize(s)
|
s = self.normalize(s)
|
||||||
(server, port) = s.rsplit(':', 2)
|
(server, port) = s.rsplit(':', 1)
|
||||||
port = int(port)
|
port = int(port)
|
||||||
return (server, port)
|
return (server, port)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user