Fix QUIC version compatibility

This commit is contained in:
klzgrad 2021-04-28 21:50:44 +08:00
parent 7de9837543
commit 3cc8f3a2db

View File

@ -445,8 +445,7 @@ std::unique_ptr<URLRequestContext> 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)));
}