diff options
Diffstat (limited to 'trunk/ipaddr.py')
-rw-r--r-- | trunk/ipaddr.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trunk/ipaddr.py b/trunk/ipaddr.py index a557bbf..63d508b 100644 --- a/trunk/ipaddr.py +++ b/trunk/ipaddr.py @@ -1595,6 +1595,10 @@ class _BaseV6(object): if ip_str.count('.') != 3: return False + # ipaddr should not consider 2001:0::3:4:5:6:7:8 valid + if ip_str.count(':') > 7: + return False + ip_str = self._explode_shorthand_ip_string(ip_str) # Now that we have that all squared away, let's check that each of the |