diff options
author | 2022-09-14 16:55:38 +0200 | |
---|---|---|
committer | 2022-09-14 14:55:38 +0000 | |
commit | 187f4f033509cb616582d0645ff5cf1ea77bac76 (patch) | |
tree | be65305a58ca1129d280630990c14d7bf946a0f4 /src/config.rs | |
parent | 064bdcab8ec056d4ef3d7b4e6f57d7684de1b3af (diff) | |
download | rathole-187f4f033509cb616582d0645ff5cf1ea77bac76.tar.gz rathole-187f4f033509cb616582d0645ff5cf1ea77bac76.tar.zst rathole-187f4f033509cb616582d0645ff5cf1ea77bac76.zip |
feat: Allow use of system default TLS trusted root by omitting the trusted_root client config parameter. (#192)
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/config.rs b/src/config.rs index 6af9c26..8b9cd3d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -296,11 +296,6 @@ impl Config { .as_ref() .and(tls_config.pkcs12_password.as_ref()) .ok_or_else(|| anyhow!("Missing `pkcs12` or `pkcs12_password`"))?; - } else { - tls_config - .trusted_root - .as_ref() - .ok_or_else(|| anyhow!("Missing `trusted_root`"))?; } Ok(()) } |