mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 14:19:25 +01:00
Network: Fix IPv6 parsing
This commit is contained in:
parent
7af8918f41
commit
fb16e8b6c2
@ -81,7 +81,7 @@ class Network(callbacks.Plugin):
|
|||||||
ssl = False
|
ssl = False
|
||||||
if server:
|
if server:
|
||||||
if ':' in server:
|
if ':' in server:
|
||||||
(server, port) = server.split(':')
|
(server, port) = server.rsplit(':', 1)
|
||||||
port = int(port)
|
port = int(port)
|
||||||
elif ssl:
|
elif ssl:
|
||||||
port = 6697
|
port = 6697
|
||||||
|
Loading…
Reference in New Issue
Block a user