diff options
author | BlockListed <[email protected]> | 2023-02-07 18:49:26 +0100 |
---|---|---|
committer | BlockListed <[email protected]> | 2023-02-07 18:49:26 +0100 |
commit | c04a1352cbc62cb55e4bb412c245c832780a20df (patch) | |
tree | dbf8713703ddab3b148490612caa4428ab5fdf63 /src/config.rs | |
parent | 5d1c11ceba3826b5ae000d9a4d8c0ec7e094428c (diff) | |
download | vaultwarden-c04a1352cbc62cb55e4bb412c245c832780a20df.tar.gz vaultwarden-c04a1352cbc62cb55e4bb412c245c832780a20df.zip |
remove warn when sanitizing domain
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/config.rs b/src/config.rs index 42a75ca2..8ae7109c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -141,13 +141,7 @@ macro_rules! make_config { )+)+ config.domain_set = _domain_set; - if config.domain_set { - if config.domain.ends_with('/') { - println!("[WARNING] The configured domain ends with a trailing slash."); - println!("[WARNING] The trailing slash is getting removed."); - config.domain = config.domain.trim_end_matches('/').to_string(); - } - } + config.domain = config.domain.trim_end_matches('/').to_string(); config.signups_domains_whitelist = config.signups_domains_whitelist.trim().to_lowercase(); config.org_creation_users = config.org_creation_users.trim().to_lowercase(); |