diff --git a/src/util/helper.py b/src/util/helper.py index 1c79dd8f..5383e5a3 100644 --- a/src/util/helper.py +++ b/src/util/helper.py @@ -296,7 +296,7 @@ def getIpType(ip): return "onion" elif ":" in ip: return "ipv6" - elif re.match("[0-9\.]+$", ip): + elif re.match(r"[0-9\.]+$", ip): return "ipv4" else: return "unknown"