mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
conf.py: Prevent traceback if server address is an IPv6 address.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
c68afacc0f
commit
ac13d09511
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user