Skip to content

Commit

Permalink
Fix tls
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayanski committed Oct 30, 2024
1 parent 652bc2b commit 5426bb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cw-orch-daemon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cw-orch-daemon"
version = "0.28.0"
version = "0.28.1"
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
Expand Down Expand Up @@ -45,7 +45,7 @@ bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] }
hex = { version = "0.4.3" }
ripemd = { version = "0.1.3" }
tokio = { workspace = true, features = ["full"] }
tonic = { workspace = true, features = ["tls"] }
tonic = { workspace = true, features = ["tls-native-roots"] }
reqwest = { version = "0.12.5" }
base64 = { version = "0.22.1" }
rand_core = { version = "0.6.4", default-features = false }
Expand Down
4 changes: 3 additions & 1 deletion cw-orch-daemon/src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ impl GrpcChannel {
let uri = Uri::from_maybe_shared(address.clone()).expect("Invalid URI");

let maybe_channel = Endpoint::from(uri)
.tls_config(ClientTlsConfig::new().with_enabled_roots())
.tls_config(
ClientTlsConfig::new().with_enabled_roots(), // .with_native_roots(),
)
.unwrap()
.connect()
.await;
Expand Down

0 comments on commit 5426bb7

Please sign in to comment.