Skip to content

Commit 098a1d2

Browse files
authored
Merge pull request #9951 from brave/eth_link_include_private
Include eth.link in public suffix only when include_private is true
2 parents 03ac016 + 35eaaeb commit 098a1d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chromium_src/net/base/lookup_string_in_fixed_set.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ int LookupSuffixInReversedSet(const unsigned char* graph,
5353
*suffix_length = strlen(decentralized_dns::kEthDomain) - 1;
5454
return kDafsaFound;
5555
}
56-
if (base::EndsWith(host, decentralized_dns::kDNSForEthDomain)) {
56+
57+
if (include_private &&
58+
base::EndsWith(host, decentralized_dns::kDNSForEthDomain)) {
5759
*suffix_length = strlen(decentralized_dns::kDNSForEthDomain) - 1;
5860
return kDafsaFound;
5961
}

0 commit comments

Comments
 (0)