diff --git a/ddclient.in b/ddclient.in index 000dc73..4ddd505 100755 --- a/ddclient.in +++ b/ddclient.in @@ -2662,6 +2662,10 @@ sub extract_ipv6 { return $ip; } +###################################################################### +## Regex that matches an IPv6 address that is probably globally routable. +## Accepts embedded leading zeros. +###################################################################### my $regex_ipv6_global = qr{ (?! # Is not one of the following addresses: 0{0,4}: # ::/16 is assumed to never contain globaly routable addresses