python-ipy
python-ipy copied to clipboard
Release 1.02 Fix a bug: last_ip can't be compressed
>>>IP('2001:0658:022a:cafe:0200::/120').strCompressed(3)
expected:
2001:658:22a:cafe:200::-2001:658:22a:cafe:200::ff
but Release 1.01 output:
2001:658:22a:cafe:200::-2001:0658:022a:cafe:0200:0000:0000:00ff
Now we can fix it!
After a few years, why the author ignore my suggestion. Isn't it useful?
Just add some lines in file IPy.py:
https://github.com/autocracy/python-ipy/pull/74/commits/f736a51b0332776b7ca2b9a79a807c67a8e746dd#diff-49161764545faea80130552e1a7f792e87c7b16aceeebde35b905f8a961205adR406-R411