From 25ddb1b23e0ac1171cf83206c17245f1d93a8ae8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 8 Dec 2021 17:52:42 +0100 Subject: Special handling of hostname:port --- src/cert_store.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cert_store.rs b/src/cert_store.rs index e2ad62b..bc05d1b 100644 --- a/src/cert_store.rs +++ b/src/cert_store.rs @@ -48,7 +48,11 @@ impl CertStore { let proxy_config: Arc = rx_proxy_config.borrow().clone(); for ent in proxy_config.entries.iter() { if let HostDescription::Hostname(domain) = &ent.host { - domains.insert(domain.clone()); + if let Some((host, _port)) = domain.split_once(':') { + domains.insert(host.to_string()); + } else { + domains.insert(domain.clone()); + } } } -- cgit v1.2.3