Stricter regex, should now catch all false positives
This commit is contained in:
parent
08ef1d559d
commit
00db8af28f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue