mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
Fix incorrect use of temporary
This commit is contained in:
parent
689f16f0d7
commit
1d5dcf6dfe
@ -438,8 +438,8 @@ 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.assign(quic::SupportedVersions().begin(),
|
const auto& versions = quic::SupportedVersions();
|
||||||
quic::SupportedVersions().end());
|
quic->supported_versions.assign(versions.begin(), versions.end());
|
||||||
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)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user