Fix check on string

This commit is contained in:
Owen 2025-02-09 11:33:40 -05:00
parent c415ceef8d
commit 34e3fe690d
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD

View file

@ -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";