Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
When I use reduce with unsorted ip list, I get strange errors. (Data for example.list are bellow.)
iprange --reduce-factor 20 example.list
iprange: WARNING: invalid range reversed start=x.x.x.80 end=0.0.x.x
iprange: WARNING: invalid range reversed start=x.x.x.96 end=0.0.x.x
iprange: WARNING: invalid range reversed start=255.255.255.255 end=0.0.0.0
iprange: WARNING: invalid range reversed start=x.x.x.160 end=0.0.127.x
x seems random.
But when I provide same data into stdin, it works without error:
cat example.list | iprange --reduce-factor 20
It also works if I optimize data first:
iprange -J example.list > example2.list
iprange --reduce-factor 20 example2.list
I'm using version 1.0.3+ds-1 from debian stretch, but i'm on debian jessie, so it's possible it is somehow related.
cat > example.list <<EOF
The text was updated successfully, but these errors were encountered:
fix invalid size of ipset while reducing non-optimized ipsets; fixes f…
thank you for reporting this!
A stupid bug. A line should be moved 2 positions below.
Fixed it. If you don't want to install from source, just optimize the ipset before reducing it, with a pipe, like you did.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.