Skip to content

Commit

Permalink
enable proxyDNS only for supported proxies (SOCKS4/5)
Browse files Browse the repository at this point in the history
  • Loading branch information
eladyn committed Apr 19, 2022
1 parent 26457f4 commit 4d29a19
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 (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
Expand Down

0 comments on commit 4d29a19

Please sign in to comment.