t(trivial) config.get_netaddress: use NetAddress.from_string - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit caa68e2fe81bd5d9d068393b220db02c5e0ba621 DIR parent 77287e0fc7d9b4783c820543b3bf1910c47189d3 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 16 Sep 2020 17:38:20 +0200 (trivial) config.get_netaddress: use NetAddress.from_string Diffstat: M electrum/simple_config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- DIR diff --git a/electrum/simple_config.py b/electrum/simple_config.py t@@ -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