Stricter regex, should now catch all false positives

pull/34/head
9cco 3 years ago
parent 08ef1d559d
commit 00db8af28f
  1. 2
      cloudflare-template.sh

@ -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…
Cancel
Save