From 1e388cd281869068c53187235f47eb5608fd5673 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Fri, 10 Dec 2021 00:03:16 -0800 Subject: [PATCH] Fix ALPN misconfiguration in example Introduced by a copy-paste error in 9daaa15da231f56559d771cf8d674ccdbe98890e --- quinn/examples/insecure_connection.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quinn/examples/insecure_connection.rs b/quinn/examples/insecure_connection.rs index 8f8939aa0..344ad5af0 100644 --- a/quinn/examples/insecure_connection.rs +++ b/quinn/examples/insecure_connection.rs @@ -76,11 +76,10 @@ impl rustls::client::ServerCertVerifier for SkipServerVerification { } fn configure_client() -> ClientConfig { - let mut crypto = rustls::ClientConfig::builder() + let crypto = rustls::ClientConfig::builder() .with_safe_defaults() .with_custom_certificate_verifier(SkipServerVerification::new()) .with_no_client_auth(); - crypto.alpn_protocols = vec![b"perf".to_vec()]; ClientConfig::new(Arc::new(crypto)) }