|
|
|
@ -25,7 +25,7 @@ GDDNS_EXTERNAL_IP="${GDDNS_EXTERNAL_IP:-"https://ipv4.icanhazip.com"}" |
|
|
|
|
############################################################################### |
|
|
|
|
|
|
|
|
|
# Discover external IP (via icanhazip.com by default) |
|
|
|
|
if ! ip="$(curl --fail --silent $GDDNS_EXTERNAL_IP)"; then |
|
|
|
|
if ! ip="$(curl --fail --silent "$GDDNS_EXTERNAL_IP")"; then |
|
|
|
|
printf "error: failed to get external IP address\n" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|