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,9 +48,13 @@ impl CertStore {
let proxy_config: Arc<ProxyConfig> = rx_proxy_config.borrow().clone(); let proxy_config: Arc<ProxyConfig> = rx_proxy_config.borrow().clone();
for ent in proxy_config.entries.iter() { for ent in proxy_config.entries.iter() {
if let HostDescription::Hostname(domain) = &ent.host { if let HostDescription::Hostname(domain) = &ent.host {
if let Some((host, _port)) = domain.split_once(':') {
domains.insert(host.to_string());
} else {
domains.insert(domain.clone()); domains.insert(domain.clone());
} }
} }
}
for dom in domains.iter() { for dom in domains.iter() {
info!("Ensuring we have certs for domains: {:?}", domains); info!("Ensuring we have certs for domains: {:?}", domains);