Stricter regex, should now catch all false positives
This commit is contained in:
1 parent
08ef1d559d
commit
00db8af28f
1 file changed
+1
-1
@@ -28,7 +28,7 @@ else
|
||||
fi
|
||||
|
||||
# Use regex to check for proper IPv4 format.
|
||||
if [[ ! $ip =~ $ipv4_regex ]]; then
|
||||
if [[ ! $ip =~ ^$ipv4_regex$ ]]; then
|
||||
logger -s "DDNS Updater: Failed to find a valid IP."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user