Skip to content

Conversation

@csfmomo
Copy link
Contributor

@csfmomo csfmomo commented Jun 30, 2020

fix: repair 0.0.0.0/0 cidr which ipset not support

Reason for Change:
Ipset doesn't support 0.0.0.0/0 cidr. A general approach is convert it to 1.0.0.0/1 and 128.0.0.0/1

  • fix: Bug Fixes 🐞

@csfmomo csfmomo requested a review from jaer-tsun June 30, 2020 20:48
@codecov
Copy link

codecov bot commented Jun 30, 2020

Codecov Report

Merging #599 into master will increase coverage by 1.81%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #599      +/-   ##
==========================================
+ Coverage   38.05%   39.86%   +1.81%     
==========================================
  Files          41       42       +1     
  Lines        4904     4585     -319     
==========================================
- Hits         1866     1828      -38     
+ Misses       2783     2502     -281     
  Partials      255      255              

@csfmomo csfmomo requested a review from matmerr June 30, 2020 23:19
@matmerr
Copy link
Member

matmerr commented Jul 1, 2020

Can we add a test to validate this scenario?

@csfmomo
Copy link
Contributor Author

csfmomo commented Jul 1, 2020

Can we add a test to validate this scenario?

Let me figure out a unit test.

@matmerr
Copy link
Member

matmerr commented Jul 8, 2020

Interesting solution, approved

@csfmomo csfmomo merged commit ea5c9a7 into master Jul 8, 2020
@csfmomo csfmomo deleted the zeroMask branch July 8, 2020 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants