Bug report: bad NextIP of "0.0.0.1"
mars1024 opened this issue · comments
Bruce Ma commented
When I use
Lines 23 to 26 in 7e9ada5
[2]
but not an expected one [0,0,0,2]
.
This is because intToIP
does not obey the byte length of IPv4(4)/IPv6(16) when first byte is 0.
Lines 51 to 53 in 7e9ada5
This bug will happen when first byte is 0 no matter family is IPv4 or IPv6.
Matthieu MOREL commented
Fixed by #782
Bruce Ma commented
/close