diff --git a/electrum/simple_config.py b/electrum/simple_config.py index c6800d8fb..acce056fe 100644 --- a/electrum/simple_config.py +++ b/electrum/simple_config.py @@ -608,8 +608,7 @@ class SimpleConfig(Logger): text = self.get(key) if text: try: - host, port = text.split(':') - return NetAddress(host, port) + return NetAddress.from_string(text) except: pass