Browse Source
(trivial) config.get_netaddress: use NetAddress.from_string
patch-4
SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
2 deletions
-
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 |
|
|
|
|
|
|
|