From ce7f3d7ee6dc09ee6cfe5a41c3ca3607d1e03bd2 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 11569c5d90..9425ebc870 100644 --- a/src/net/tools/naive/naive_proxy_bin.cc +++ b/src/net/tools/naive/naive_proxy_bin.cc @@ -448,8 +448,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))); }