Skip to content

Commit

Permalink
Merge pull request #2333 from eladyn/proxy_proxyDNS_fix
Browse files Browse the repository at this point in the history
enable proxyDNS only for supported proxies (SOCKS4/5)
  • Loading branch information
bakulf committed Apr 25, 2022
2 parents 26457f4 + 0b869a1 commit d4e9502
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/js/background/assignManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,17 @@ window.assignManager = {
return {};
}

// proxyDNS only works for SOCKS proxies
if (["socks", "socks4"].includes(result.proxy.type)) {
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
Expand Down

0 comments on commit d4e9502

Please sign in to comment.