From 982cf855e541e57dd55caa4dd591abab2f0ea41b Mon Sep 17 00:00:00 2001 From: NinekoTheCat Date: Sun, 24 Dec 2023 20:26:22 +0100 Subject: [PATCH] fix: changed behavior of allowlist database to warn against using allowlist values in the database without enabling the allowlist without denying the request outright --- src/service/acl/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/acl/mod.rs b/src/service/acl/mod.rs index be9de6ac..ba173df6 100644 --- a/src/service/acl/mod.rs +++ b/src/service/acl/mod.rs @@ -99,8 +99,8 @@ impl Service { Ok(Some(data::AclMode::Block)) => false, Ok(Some(data::AclMode::Allow)) if allow_list_enabled => true, Ok(Some(data::AclMode::Allow)) => { - warn!("allowlist value found in database for {} but allow list is not enabled, denied request", server_host_name); - false + warn!("allowlist value found in database for {} but allow list is not enabled, allowed request", server_host_name); + true } } }