Use QUIC RFCv1

This commit is contained in:
klzgrad 2021-09-09 06:47:13 +08:00
parent 4a24dc9329
commit f0ce590c00

View File

@ -445,7 +445,7 @@ std::unique_ptr<URLRequestContext> BuildURLRequestContext(
if (proxy_url.compare(0, 7, "quic://") == 0) { if (proxy_url.compare(0, 7, "quic://") == 0) {
proxy_url.replace(0, 4, "https"); proxy_url.replace(0, 4, "https");
auto* quic = context->quic_context()->params(); auto* quic = context->quic_context()->params();
quic->supported_versions = {quic::ParsedQuicVersion::Draft29()}; quic->supported_versions = {quic::ParsedQuicVersion::RFCv1()};
quic->origins_to_force_quic_on.insert( quic->origins_to_force_quic_on.insert(
net::HostPortPair::FromURL(GURL(proxy_url))); net::HostPortPair::FromURL(GURL(proxy_url)));
} }