mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-11 06:07:53 +00:00
IPv6: accept IPv6 address and port in hostname
This commit is contained in:
parent
68a05cb021
commit
21d4604578
@ -313,7 +313,9 @@ class ConfigurationGetter(object):
|
||||
port = constants.DEFAULT_PORT if not self._config["port"] else self._config["port"]
|
||||
if host:
|
||||
if ':' in host:
|
||||
host, port = host.split(':', 1)
|
||||
host, port = host.rsplit(':', 1)
|
||||
if '[' in host:
|
||||
host = host.strip('[]')
|
||||
try:
|
||||
port = int(port)
|
||||
except ValueError:
|
||||
|
Loading…
Reference in New Issue
Block a user