Fix ipv4 checking regexp

This commit is contained in:
shortcutme 2019-12-21 02:59:18 +01:00
parent 2c3f1ba7ad
commit 2acf24c336
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -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"