Fix inverted key/chain logic from TLS error improvement (#2453)

This commit is contained in:
Firstyear 2024-01-24 16:51:41 +10:00 committed by GitHub
parent 967bc7c9df
commit 50c324c063
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -648,8 +648,8 @@ impl Configuration {
match (chain, key) {
(None, None) => {}
(Some(chainp), Some(keyp)) => {
let chain = PathBuf::from(keyp.clone());
let key = PathBuf::from(chainp.clone());
let chain = PathBuf::from(chainp.clone());
let key = PathBuf::from(keyp.clone());
let client_ca = client_ca.clone().map(PathBuf::from);
self.tls_config = Some(TlsConfiguration {
chain,