mirror of
https://github.com/n0-computer/noq.git
synced 2026-10-13 08:11:39 +00:00
Fix ALPN misconfiguration in example
Introduced by a copy-paste error in
9daaa15da2
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user