mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-18 09:15:37 +00:00
Set ALPN ID in interop tool
ngtcp2 unconditionally pretends we negotiated hq-17, which confuses rustls if we didn't.
This commit is contained in:
committed by
Dirkjan Ochtman
parent
535f8b2af3
commit
cf5ec4aff4
@@ -63,6 +63,7 @@ fn run(log: Logger, options: Opt) -> Result<()> {
|
||||
let mut builder = quinn::Endpoint::new();
|
||||
let mut client_config = quinn::ClientConfigBuilder::new();
|
||||
client_config.accept_insecure_certs(); // Various interop test servers use self-signed certs
|
||||
client_config.set_protocols(&[quinn::ALPN_QUIC_HTTP]);
|
||||
builder.logger(log.clone());
|
||||
if options.keylog {
|
||||
client_config.enable_keylog();
|
||||
|
||||
Reference in New Issue
Block a user