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
/32 subnet mask erroneously matches all IP addresses #43360
Darwin xxx 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64
Subsystem
net
What steps will reproduce the bug?
A /32 subnet mask such as 1.1.1.1/32 should match only the IP address 1.1.1.1 as all 32 bits should be compared. However, if a /32 subnet mask is used with net.Blocklist(), it erroneously matches all IP addresses.
The issue can be reproduced by running the following code snippet:
Activity
Trott commentedon Jun 9, 2022
@nodejs/net
mcollina commentedon Jun 9, 2022
@supriyo-biswas would you like to send a PR to address this?
supriyo-biswas commentedon Jun 10, 2022
@mcollina yes, I will. If I have questions, is it fine to ask in this issue itself?
ShogunPanda commentedon Jun 10, 2022
@supriyo-biswas Yes, go for it! ^^
Adambenmabrok commentedon Jun 20, 2022
Trott commentedon Jun 20, 2022
Trott commentedon Jun 20, 2022
net: prevent /32 ipv4 mask from matching all ips
net: prevent /32 ipv4 mask from matching all ips
net: prevent /32 ipv4 mask from matching all ips
net: prevent /32 ipv4 mask from matching all ips
net: prevent /32 ipv4 mask from matching all ips