From 92bb7371b41829dd6599c043b30af395a2798e57 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..eec3ad8ca6 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::Draft29()}; quic->origins_to_force_quic_on.insert( net::HostPortPair::FromURL(GURL(proxy_url))); }