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 let local_domains = config
.local_domains .local_domains
.iter() .iter()
.flat_map(|s| s.split(",")) .flat_map(|s| s.split(','))
.map(|d| d.to_string()) .map(|d| d.to_string())
.collect(); .collect();

View file

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