From 208da9a1e86714b3015a9fc7ebf3f5dfdf70f4e3 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 28 Apr 2021 21:50:44 +0800 Subject: [PATCH] Fix QUIC version compatibility --- src/net/tools/naive/naive_proxy_bin.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/net/tools/naive/naive_proxy_bin.cc b/src/net/tools/naive/naive_proxy_bin.cc index 0d46f389e8..bb370474bc 100644 --- a/src/net/tools/naive/naive_proxy_bin.cc +++ b/src/net/tools/naive/naive_proxy_bin.cc @@ -445,8 +445,7 @@ std::unique_ptr BuildURLRequestContext( if (proxy_url.compare(0, 7, "quic://") == 0) { proxy_url.replace(0, 4, "https"); auto* quic = context->quic_context()->params(); - const auto& versions = quic::SupportedVersions(); - quic->supported_versions.assign(versions.begin(), versions.end()); + quic->supported_versions = {quic::ParsedQuicVersion::RFCv1()}; quic->origins_to_force_quic_on.insert( net::HostPortPair::FromURL(GURL(proxy_url))); }