timmerk / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

IPv6Address accepts leading zeroes #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ipaddr.IPAddress('02001:db8::', 6)

What is the expected output? What do you see instead?

Should throw a ValueError, because leading zeroes are not allowed in IPv6 
addresses (see RFC 4291). It dows not.

What version of the product are you using? On what operating system?

2.1.10, tried Windows 7 and Linux.

Please provide any additional information below.

Original issue reported on code.google.com by johannes...@gmail.com on 12 Jun 2012 at 2:32

GoogleCodeExporter commented 9 years ago
thanks for the report.

should be fixed in 8d1eeed6e9f6

Original comment by pmo...@google.com on 29 Jun 2012 at 6:27