fix IPv6 validation #263
This commit is contained in:
parent
0960adef3a
commit
d17f4afdd0
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class UiRequest:
|
|||
self.learnHost(host)
|
||||
return True
|
||||
|
||||
if ":" in host and helper.isIp(host.rsplit(":", 1)[0]): # Test without port
|
||||
if ":" in host and helper.isIp(host.rsplit(":", 1)[0].lstrip("[").rstrip("]")): # Test without port
|
||||
self.learnHost(host)
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue