mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 10:16:41 +00:00
Fix check on string
This commit is contained in:
@@ -488,7 +488,7 @@ async function checkRules(
|
|||||||
for (const rule of rules) {
|
for (const rule of rules) {
|
||||||
if (
|
if (
|
||||||
clientIp &&
|
clientIp &&
|
||||||
rule.match == "IP" &&
|
rule.match == "CIDR" &&
|
||||||
isIpInCidr(clientIp, rule.value)
|
isIpInCidr(clientIp, rule.value)
|
||||||
) {
|
) {
|
||||||
return rule.action as "ACCEPT" | "DROP";
|
return rule.action as "ACCEPT" | "DROP";
|
||||||
|
|||||||
Reference in New Issue
Block a user