Skip to content

Commit

Permalink
disable CNAME uncloaking when a proxy extension with a socks fallback…
Browse files Browse the repository at this point in the history
… is enabled
  • Loading branch information
antonok-edm committed Oct 28, 2021
1 parent a72fdc4 commit 645a6d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion browser/net/brave_ad_block_tp_network_delegate_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ bool ProxySettingsAllowUncloaking(content::BrowserContext* browser_context) {
net::ProxyConfigService::ConfigAvailability::CONFIG_VALID) {
// PROXY_LIST corresponds to SingleProxy mode.
if (config.value().proxy_rules().type ==
net::ProxyConfig::ProxyRules::Type::PROXY_LIST) {
net::ProxyConfig::ProxyRules::Type::PROXY_LIST ||
(config.value().proxy_rules().type ==
net::ProxyConfig::ProxyRules::Type::PROXY_LIST_PER_SCHEME &&
!config.value().proxy_rules().fallback_proxies.IsEmpty())) {
can_uncloak = false;
}
}
Expand Down

0 comments on commit 645a6d6

Please sign in to comment.