diff options
-rw-r--r-- | src/cert_store.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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<ProxyConfig> = 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()); + } } } |