Special handling of hostname:port

This commit is contained in:
Alex 2021-12-08 17:52:42 +01:00
parent 3bdb417bfb
commit 25ddb1b23e
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1

View file

@ -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());
}
}
}