mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-17 16:01:22 +02:00
Fix check on string
This commit is contained in:
parent
c415ceef8d
commit
34e3fe690d
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue