Skip to content

Commit

Permalink
Fix tlsSecurity
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Feb 21, 2025
1 parent ab3a90c commit 7d439cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gel-tokio/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,11 @@ impl Config {
"password": self.0.password,
"secretKey": self.0.secret_key,
"tlsCAData": self.0.pem_certificates,
"tlsSecurity": format!("{:?}", self.0.compute_tls_security().unwrap()),
"tlsSecurity": match self.0.compute_tls_security().unwrap() {
gel_stream::TlsServerCertVerify::Insecure => "insecure",
gel_stream::TlsServerCertVerify::IgnoreHostname => "no_host_verification",
gel_stream::TlsServerCertVerify::VerifyFull => "strict",
},
"tlsServerName": self.0.tls_server_name,
"serverSettings": self.0.extra_dsn_query_args,
"waitUntilAvailable": self.0.wait.as_micros() as i64,
Expand Down

0 comments on commit 7d439cc

Please sign in to comment.