This commit is contained in:
asonix 2022-11-21 14:25:24 -06:00
parent a77a4cde22
commit 88329a79e2
2 changed files with 2 additions and 3 deletions

View file

@ -171,7 +171,7 @@ impl Config {
let local_domains = config
.local_domains
.iter()
.flat_map(|s| s.split(","))
.flat_map(|s| s.split(','))
.map(|d| d.to_string())
.collect();

View file

@ -33,8 +33,7 @@ pub(crate) async fn route(
config
.local_domains()
.iter()
.find(|domain| domain.as_str() == authority)
.is_some()
.any(|domain| domain.as_str() == authority)
})
.unwrap_or(false)
{