diff --git a/src/util/helper.py b/src/util/helper.py index 6ebeee72..d2d8cfde 100644 --- a/src/util/helper.py +++ b/src/util/helper.py @@ -249,7 +249,7 @@ def isIp(ip): return False -local_ip_pattern = re.compile(r"^(127\.)|(192\.168\.)|(10\.)|(172\.1[6-9]\.)|(172\.2[0-9]\.)|(172\.3[0-1]\.)|(::1$)|fe80") +local_ip_pattern = re.compile(r"^127\.|192\.168\.|10\.|172\.1[6-9]\.|172\.2[0-9]\.|172\.3[0-1]\.|169\.254\.|::1$|fe80") def isPrivateIp(ip): return local_ip_pattern.match(ip)