fix: add 0.0.0.0/32 to the non Public CIDRs (#1181)

* fix: add to the non Public CIDRs (#1177)

* fix: move 0.0.0.0 to bottom, add cidr suffix

---------

Co-authored-by: Cr4zy Uru5 <crazyurus@vip.qq.com>
This commit is contained in:
Yanlong Wang 2025-04-02 15:26:43 +08:00 committed by GitHub
parent 12ba1bcfad
commit b58a2db69a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,6 +139,7 @@ const nonPublicNetworks4 = [
'224.0.0.0/4',
'100.64.0.0/10',
'0.0.0.0/32',
];
@ -163,4 +164,4 @@ export function isIPInNonPublicRange(ip: string) {
}
return false;
}
}