Commit e195994b authored by Philipp Hörist's avatar Philipp Hörist

Interface: Use rsplit for extracting the port

parent 8265ffb5
Pipeline #5815 passed with stages
in 3 minutes and 59 seconds
......@@ -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