mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
Fix QUIC version compatibility
This commit is contained in:
parent
cab63ebe34
commit
a8fe4ebe81
@ -448,8 +448,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::Draft29()};
|
||||
quic->origins_to_force_quic_on.insert(
|
||||
net::HostPortPair::FromURL(GURL(proxy_url)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user