(trivial) config.get_netaddress: use NetAddress.from_string

This commit is contained in:
SomberNight 2020-09-16 17:38:20 +02:00
parent 77287e0fc7
commit caa68e2fe8
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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