mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
conf.py: Prevent traceback if server address is an IPv6 address.
This commit is contained in:
parent
d05506ee22
commit
929090c279
@ -239,7 +239,7 @@ class Servers(registry.SpaceSeparatedListOfStrings):
|
|||||||
|
|
||||||
def convert(self, s):
|
def convert(self, s):
|
||||||
s = self.normalize(s)
|
s = self.normalize(s)
|
||||||
(server, port) = s.split(':')
|
(server, port) = s.rsplit(':', 2)
|
||||||
port = int(port)
|
port = int(port)
|
||||||
return (server, port)
|
return (server, port)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user