From 3cc8f3a2db577104dc3965e2336de5158a7b8f90 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 e8ab840f38..5d20e4f459 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))); }