fix: changed behavior of allowlist database to warn against using allowlist values in the database without enabling the allowlist without denying the request outright

This commit is contained in:
NinekoTheCat 2023-12-24 20:26:22 +01:00
parent b7141598dc
commit 982cf855e5
No known key found for this signature in database
GPG key ID: 700DB3F678A4AB66

View file

@ -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
}
}
}