From d17f4afdd039c7f2c34f9ce5bfe2efed22ad72a3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 27 Mar 2024 20:33:52 +0200 Subject: [PATCH] fix IPv6 validation #263 --- src/Ui/UiRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ui/UiRequest.py b/src/Ui/UiRequest.py index 34af96e2..a61b0439 100644 --- a/src/Ui/UiRequest.py +++ b/src/Ui/UiRequest.py @@ -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