Default tls_cert_key_path to tls_cert_path

This commit is contained in:
Frank Denis 2020-10-12 12:39:17 +02:00
parent cf8ba631e6
commit 5fabdbf2d1

View file

@ -161,6 +161,9 @@ pub fn parse_opts(globals: &mut Globals) {
#[cfg(feature = "tls")]
{
globals.tls_cert_path = matches.value_of("tls_cert_key_path").map(PathBuf::from);
globals.tls_cert_key_path = matches.value_of("tls_cert_key_path").map(PathBuf::from);
globals.tls_cert_key_path = matches
.value_of("tls_cert_key_path")
.map(PathBuf::from)
.or_else(|| globals.tls_cert_path.clone());
}
}