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