Merge remote-tracking branch 'origin/fix/fix/tls-mode-wildcard-mismatch'
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -184,14 +184,16 @@ async fn run_server(loaded_config: cli::LoadedConfig, config_path: &str) -> Resu
|
|||||||
"ACME TLS configured"
|
"ACME TLS configured"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
_ => {
|
}
|
||||||
warn!(
|
}
|
||||||
addr = %listener_config.bind_addr,
|
|
||||||
"unsupported TLS mode"
|
if bound_listeners.len() != tls_acceptors.len() {
|
||||||
|
anyhow::bail!(
|
||||||
|
"listener/acceptor count mismatch: {} listeners, {} acceptors",
|
||||||
|
bound_listeners.len(),
|
||||||
|
tls_acceptors.len()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let _eviction_handle = start_eviction_task(
|
let _eviction_handle = start_eviction_task(
|
||||||
rate_limiter.clone(),
|
rate_limiter.clone(),
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ fn build_acme_server_config(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[non_exhaustive]
|
|
||||||
pub enum TlsMode {
|
pub enum TlsMode {
|
||||||
Manual(Arc<ServerConfig>),
|
Manual(Arc<ServerConfig>),
|
||||||
Acme {
|
Acme {
|
||||||
|
|||||||
Reference in New Issue
Block a user