forked from mirrors/gecko-dev
Bug 1890554 - Use ProxyInfo::TRANSPARENT_PROXY_RESOLVES_HOST flag in nsHttpChannel::GetProxyDNSStrategy r=manuel,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D209875
This commit is contained in:
parent
f910267fcf
commit
a7cc2c512a
1 changed files with 4 additions and 1 deletions
|
|
@ -6430,10 +6430,13 @@ uint16_t nsHttpChannel::GetProxyDNSStrategy() {
|
|||
return DNS_PREFETCH_ORIGIN;
|
||||
}
|
||||
|
||||
uint32_t flags = 0;
|
||||
nsAutoCString type;
|
||||
mProxyInfo->GetFlags(&flags);
|
||||
mProxyInfo->GetType(type);
|
||||
|
||||
if (!StaticPrefs::network_proxy_socks_remote_dns()) {
|
||||
// If the proxy is not to perform name resolution itself.
|
||||
if (!(flags & nsIProxyInfo::TRANSPARENT_PROXY_RESOLVES_HOST)) {
|
||||
if (type.EqualsLiteral("socks")) {
|
||||
return DNS_PREFETCH_ORIGIN;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue