mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
(trivial) config.get_netaddress: use NetAddress.from_string
This commit is contained in:
parent
77287e0fc7
commit
caa68e2fe8
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue