You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BlockList addRange appears to match addresses incorrectly #39074
How often does it reproduce? Is there a required condition?
Always reproduces.
What is the expected behavior?
I expect the block list with above-mentioned configuration to block 10.0.0.3 but allow 192.168.0.3 (i.e., check to return false).
What do you see instead?
It looks as if BlockList matches only the last element of the IP address. As a result, check returns true for 192.168.0.3 even though it's not in the range:
Activity
targos commentedon Jun 18, 2021
@jasnell
EladKeyshawn commentedon Jun 18, 2021
@targos Is this a relevant bug ?
jasnell commentedon Jun 18, 2021
Will investigate!
EricHripko commentedon Jul 5, 2021
Thank you for looking into this 👍
src: compare IPv4 addresses in host byte order
src: compare IPv4 addresses in host byte order
src: compare IPv4 addresses in host byte order
src: compare IPv4 addresses in host byte order
src: compare IPv4 addresses in host byte order