aboutsummaryrefslogtreecommitdiff
path: root/src/cert_store.rs
diff options
context:
space:
mode:
authorQuentin <quentin@dufour.io>2023-11-29 16:09:56 +0000
committerQuentin <quentin@dufour.io>2023-11-29 16:09:56 +0000
commitb04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3 (patch)
tree8b0eda30cba5b2c62810a2cd71b7a93095e20205 /src/cert_store.rs
parent14325395f6b059a317df738657edec47599c291f (diff)
parentb76b6dcbcc47ebc61848389a6b0d5d4e8d8cde48 (diff)
downloadtricot-b04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3.tar.gz
tricot-b04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3.zip
Merge pull request 'New directive `tricot-add-redirect <match-prefix> <redirect-prefix> [301|302|303|307]`' (#10) from redirect into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/tricot/pulls/10
Diffstat (limited to 'src/cert_store.rs')
-rw-r--r--src/cert_store.rs4
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);
}