Skip to content

Commit

Permalink
example/client: restore no cert validation
Browse files Browse the repository at this point in the history
  • Loading branch information
BiagioFesta committed Oct 2, 2023
1 parent 84a7511 commit c94b2a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wtransport/examples/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ use wtransport::Endpoint;

#[tokio::main]
async fn main() {
let connection = Endpoint::client(ClientConfig::default())
let config = ClientConfig::builder()
.with_bind_default()
.with_no_cert_validation()
.build();

let connection = Endpoint::client(config)
.unwrap()
.connect("https://[::1]:4433")
.await
Expand Down

0 comments on commit c94b2a3

Please sign in to comment.