Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Ensure that all results from check_domain_blacklist_reason are cached.
Dieser Commit ist enthalten in:
Ursprung
24b5784f02
Commit
6741b25907
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -265,7 +265,7 @@ enum DomainBlacklistReason {
|
|||
}
|
||||
|
||||
use cached::proc_macro::cached;
|
||||
#[cached(key = "String", convert = r#"{ domain.to_string() }"#, size = 16, time = 60, option = true)]
|
||||
#[cached(key = "String", convert = r#"{ domain.to_string() }"#, size = 16, time = 60)]
|
||||
async fn check_domain_blacklist_reason(domain: &str) -> Option<DomainBlacklistReason> {
|
||||
// First check the blacklist regex if there is a match.
|
||||
// This prevents the blocked domain(s) from being leaked via a DNS lookup.
|
||||
|
|
Laden …
In neuem Issue referenzieren