Skip to content

Commit

Permalink
fix(examples): Use https scheme when using tls (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Aug 25, 2023
1 parent 6e91db6 commit 388b177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/src/tls/client.rs
Expand Up @@ -15,7 +15,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.ca_certificate(ca)
.domain_name("example.com");

let channel = Channel::from_static("http://[::1]:50051")
let channel = Channel::from_static("https://[::1]:50051")
.tls_config(tls)?
.connect()
.await?;
Expand Down
2 changes: 1 addition & 1 deletion examples/src/tls_client_auth/client.rs
Expand Up @@ -19,7 +19,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.ca_certificate(server_root_ca_cert)
.identity(client_identity);

let channel = Channel::from_static("http://[::1]:50051")
let channel = Channel::from_static("https://[::1]:50051")
.tls_config(tls)?
.connect()
.await?;
Expand Down

0 comments on commit 388b177

Please sign in to comment.