Skip to content
Snippets Groups Projects
Commit e195994b authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Interface: Use rsplit for extracting the port

parent 8265ffb5
No related branches found
No related tags found
No related merge requests found
......@@ -1533,7 +1533,7 @@ def create_account(account,
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment