aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/check_valid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/check_valid.py b/util/check_valid.py
index 87cd57ed..36d74ba4 100644
--- a/util/check_valid.py
+++ b/util/check_valid.py
@@ -25,7 +25,7 @@ def is_valid_ip(ip):
if not ip:
return False
res = re.search(
- "^(0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}(\/(\d|[1-2]\d|3[0-2]))?$",
+ "^(0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}(\/(\d|[1-2]\d|3[0-2]))?$", # noqa
ip) is not None
return res