Browse Source

(trivial) config.get_netaddress: use NetAddress.from_string

patch-4
SomberNight 4 years ago
parent
commit
caa68e2fe8
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/simple_config.py

3
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

Loading…
Cancel
Save