diff --git a/neqo-client/src/main.rs b/neqo-client/src/main.rs index d099d99331..83dd2c5ac7 100644 --- a/neqo-client/src/main.rs +++ b/neqo-client/src/main.rs @@ -1012,6 +1012,9 @@ fn main() -> Res<()> { args.use_old_http = true; args.key_update = true; } + "v2" => { + args.use_old_http = true; + } _ => exit(127), } } diff --git a/neqo-server/src/main.rs b/neqo-server/src/main.rs index ca6b6800fb..a9e4d37e63 100644 --- a/neqo-server/src/main.rs +++ b/neqo-server/src/main.rs @@ -837,10 +837,12 @@ fn main() -> Result<(), io::Error> { if let Some(testcase) = args.qns_test.as_ref() { if args.quic_parameters.quic_version.is_empty() { - // Quic Interop Runner expects the server to support `Version1` only. - // Exceptions are testcases `versionnegotiation` and `v2`. Neither are - // supported by Neqo. Thus always set `Version1`. - args.quic_parameters.quic_version = vec![VersionArg(Version::Version1)]; + // Quic Interop Runner expects the server to support `Version1` + // only. Exceptions are testcases `versionnegotiation` (not yet + // implemented) and `v2`. + if testcase != "v2" { + args.quic_parameters.quic_version = vec![VersionArg(Version::Version1)]; + } } else { qwarn!("Both -V and --qns-test were set. Ignoring testcase specific versions."); } @@ -868,6 +870,10 @@ fn main() -> Result<(), io::Error> { args.alpn = String::from(HQ_INTEROP); args.retry = true; } + "v2" => { + args.use_old_http = true; + args.alpn = String::from(HQ_INTEROP); + } _ => exit(127), } }