mirror of
https://github.com/DNSCrypt/doh-server.git
synced 2025-04-02 12:37:37 +03:00
Only retrieve clap arguments as String, don't expect it to be smart
Fixes #94
This commit is contained in:
parent
c9e084b2b4
commit
fbf82068d1
1 changed files with 2 additions and 2 deletions
|
@ -232,10 +232,10 @@ pub fn parse_opts(globals: &mut Globals) {
|
|||
#[cfg(feature = "tls")]
|
||||
{
|
||||
globals.tls_cert_path = matches
|
||||
.get_one::<PathBuf>("tls_cert_path")
|
||||
.get_one::<String>("tls_cert_path")
|
||||
.map(PathBuf::from);
|
||||
globals.tls_cert_key_path = matches
|
||||
.get_one::<PathBuf>("tls_cert_key_path")
|
||||
.get_one::<String>("tls_cert_key_path")
|
||||
.map(PathBuf::from)
|
||||
.or_else(|| globals.tls_cert_path.clone());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue