(trivial) config.get_netaddress: use NetAddress.from_string
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user