mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-09 14:06:42 +02:00
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:
parent
b7141598dc
commit
982cf855e5
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ impl Service {
|
||||||
Ok(Some(data::AclMode::Block)) => false,
|
Ok(Some(data::AclMode::Block)) => false,
|
||||||
Ok(Some(data::AclMode::Allow)) if allow_list_enabled => true,
|
Ok(Some(data::AclMode::Allow)) if allow_list_enabled => true,
|
||||||
Ok(Some(data::AclMode::Allow)) => {
|
Ok(Some(data::AclMode::Allow)) => {
|
||||||
warn!("allowlist value found in database for {} but allow list is not enabled, denied request", server_host_name);
|
warn!("allowlist value found in database for {} but allow list is not enabled, allowed request", server_host_name);
|
||||||
false
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue