mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-25 04:18:30 +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"]
|
port = constants.DEFAULT_PORT if not self._config["port"] else self._config["port"]
|
||||||
if host:
|
if host:
|
||||||
if ':' in host:
|
if ':' in host:
|
||||||
host, port = host.split(':', 1)
|
host, port = host.rsplit(':', 1)
|
||||||
|
if '[' in host:
|
||||||
|
host = host.strip('[]')
|
||||||
try:
|
try:
|
||||||
port = int(port)
|
port = int(port)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
Reference in New Issue
Block a user