Network: Fix IPv6 parsing

This commit is contained in:
Valentin Lorentz 2021-05-22 18:51:22 +02:00
parent 7af8918f41
commit fb16e8b6c2
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Network(callbacks.Plugin):
ssl = False
if server:
if ':' in server:
(server, port) = server.split(':')
(server, port) = server.rsplit(':', 1)
port = int(port)
elif ssl:
port = 6697