1
0

(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

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