Commit b2dd45d3 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Interface: Use rsplit for extracting the port

parent 2bea664d
......@@ -1533,7 +1533,7 @@ class Interface:
config['use_custom_host'] = use_custom_host
if custom_host:
host, _protocol, type_ = custom_host
host, port = host.split(':')
host, port = host.rsplit(':', maxsplit=1)
config['custom_port'] = int(port)
config['custom_host'] = host
config['custom_type'] = type_.value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment