From c94b2a3b795c42df8e0117bdf13117d10ef9f376 Mon Sep 17 00:00:00 2001 From: BiagioFesta <15035284+BiagioFesta@users.noreply.github.com> Date: Mon, 2 Oct 2023 22:10:54 +0200 Subject: [PATCH] example/client: restore no cert validation --- wtransport/examples/client.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wtransport/examples/client.rs b/wtransport/examples/client.rs index b4a5a9f..ed84507 100644 --- a/wtransport/examples/client.rs +++ b/wtransport/examples/client.rs @@ -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