forked from Deuxfleurs/tricot
Special handling of hostname:port
This commit is contained in:
parent
3bdb417bfb
commit
25ddb1b23e
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue