Fix QUIC auth

This commit is contained in:
klzgrad 2022-02-20 11:04:23 +08:00
parent ed2c513637
commit 64500beb7c

View File

@ -443,6 +443,7 @@ std::unique_ptr<URLRequestContext> BuildURLRequestContext(
GURL proxy_gurl(proxy_url); GURL proxy_gurl(proxy_url);
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");
proxy_gurl = GURL(proxy_url);
auto* quic = context->quic_context()->params(); auto* quic = context->quic_context()->params();
quic->supported_versions = {quic::ParsedQuicVersion::RFCv1()}; quic->supported_versions = {quic::ParsedQuicVersion::RFCv1()};
quic->origins_to_force_quic_on.insert( quic->origins_to_force_quic_on.insert(