diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-29 12:49:55 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-29 12:49:55 +0100 |
commit | de72d6037f255c50ac7d326bbccc3bac462a279e (patch) | |
tree | 33ad6b660ab1567af4279528716aa0dff58eb617 /src/cert_store.rs | |
parent | 14325395f6b059a317df738657edec47599c291f (diff) | |
download | tricot-de72d6037f255c50ac7d326bbccc3bac462a279e.tar.gz tricot-de72d6037f255c50ac7d326bbccc3bac462a279e.zip |
refactor configuration to support redirects
Diffstat (limited to 'src/cert_store.rs')
-rw-r--r-- | src/cert_store.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cert_store.rs b/src/cert_store.rs index a8072a2..0ced178 100644 --- a/src/cert_store.rs +++ b/src/cert_store.rs @@ -78,7 +78,7 @@ impl CertStore { let proxy_config: Arc<ProxyConfig> = rx_proxy_config.borrow().clone(); for ent in proxy_config.entries.iter() { - if let HostDescription::Hostname(domain) = &ent.host { + if let HostDescription::Hostname(domain) = &ent.url_prefix.host { if let Some((host, _port)) = domain.split_once(':') { domains.insert(host.to_string()); } else { @@ -121,7 +121,7 @@ impl CertStore { .borrow() .entries .iter() - .any(|ent| ent.host.matches(domain)) + .any(|ent| ent.url_prefix.host.matches(domain)) { bail!("Domain {} should not have a TLS certificate.", domain); } |