vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 6741b2590709957dffcd16d7a04b4ebdbaa92c1d
parent 24b5784f027b04ccdb7d34b89a87e204b97bc22b
Author: Kevin P. Fleming <kevin@km6g.us>
Date:   Tue,  7 Feb 2023 05:54:06 -0500

Ensure that all results from check_domain_blacklist_reason are cached.

Diffstat:
Msrc/api/icons.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/icons.rs b/src/api/icons.rs @@ -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.