From caa68e2fe81bd5d9d068393b220db02c5e0ba621 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 16 Sep 2020 17:38:20 +0200 Subject: [PATCH] (trivial) config.get_netaddress: use NetAddress.from_string --- electrum/simple_config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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