From b58a2db69a9c0b9b5093b3258c66044607b175cf Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Wed, 2 Apr 2025 15:26:43 +0800 Subject: [PATCH] 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 --- src/utils/ip.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/ip.ts b/src/utils/ip.ts index 62bfad2..d8d387e 100644 --- a/src/utils/ip.ts +++ b/src/utils/ip.ts @@ -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; -} \ No newline at end of file +}