mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-04-18 11:50:00 +08:00
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:
parent
12ba1bcfad
commit
b58a2db69a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user