Skip if it's an IPv6 address; at some point, maybe we'll support that too.
This commit is contained in:
parent
1214a6532e
commit
848d673257
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user