Spaces:
Build error
Build error
fix: add 0.0.0.0/32 to the non Public CIDRs (#1181)
Browse files* 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>
- src/utils/ip.ts +2 -1
src/utils/ip.ts
CHANGED
|
@@ -139,6 +139,7 @@ const nonPublicNetworks4 = [
|
|
| 139 |
'224.0.0.0/4',
|
| 140 |
|
| 141 |
'100.64.0.0/10',
|
|
|
|
| 142 |
];
|
| 143 |
|
| 144 |
|
|
@@ -163,4 +164,4 @@ export function isIPInNonPublicRange(ip: string) {
|
|
| 163 |
}
|
| 164 |
|
| 165 |
return false;
|
| 166 |
-
}
|
|
|
|
| 139 |
'224.0.0.0/4',
|
| 140 |
|
| 141 |
'100.64.0.0/10',
|
| 142 |
+
'0.0.0.0/32',
|
| 143 |
];
|
| 144 |
|
| 145 |
|
|
|
|
| 164 |
}
|
| 165 |
|
| 166 |
return false;
|
| 167 |
+
}
|