diff --git a/update_ip.sh b/update_ip.sh index 10e319c..fbf3135 100755 --- a/update_ip.sh +++ b/update_ip.sh @@ -17,6 +17,11 @@ if [ -f "${HOME}/${cache}" ]; then old_ip=$(cat "${HOME}/${cache}") fi +# Exit if we're at an IPv6 address +if [ -z "${ip##*:*}" ]; then + exit; +fi + if [ "${set_ip}" = "${ip}" ] && [ "${ip}" = "${old_ip}" ]; then exit; else