enable proxyDNS only for supported proxies (SOCKS4/5)
This commit is contained in:
parent
26457f4c3f
commit
0ef50dd2f0
1 changed files with 7 additions and 2 deletions
|
@ -197,12 +197,17 @@ window.assignManager = {
|
|||
return {};
|
||||
}
|
||||
|
||||
// proxyDNS only works for SOCKS proxies
|
||||
if (result.proxy.type === "socks" || result.proxy.type === "socks4" ) {
|
||||
result.proxy.proxyDNS = true;
|
||||
}
|
||||
|
||||
if (!result.proxy.mozProxyEnabled) {
|
||||
return { ...result.proxy, proxyDNS: true };
|
||||
return result.proxy;
|
||||
}
|
||||
|
||||
// Let's add the isolation key.
|
||||
return [{ ...result.proxy, connectionIsolationKey: "" + MozillaVPN_Background.isolationKey, proxyDNS: true }];
|
||||
return [{ ...result.proxy, connectionIsolationKey: "" + MozillaVPN_Background.isolationKey }];
|
||||
},
|
||||
|
||||
// Before a request is handled by the browser we decide if we should
|
||||
|
|
Loading…
Add table
Reference in a new issue