Skip to content

Commit

Permalink
Merge pull request #12 from arangodb/use-rust-tls
Browse files Browse the repository at this point in the history
add: `use_rust_tls`
  • Loading branch information
hkernbach authored Aug 29, 2024
2 parents daa482d + 7c555a7 commit 0d00f50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ pub fn build_client(
let cert = get_cert(cert_path)?;
client_builder.add_root_certificate(cert).use_rustls_tls()
} else {
client_builder.danger_accept_invalid_certs(true)
client_builder
.danger_accept_invalid_certs(true)
.use_rustls_tls()
}
} else {
client_builder.danger_accept_invalid_certs(true)
Expand Down

0 comments on commit 0d00f50

Please sign in to comment.