Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Eloston committed Oct 30, 2022
1 parent 4caa583 commit 1aad5fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
network::mojom::ResolveHostParameters::New();
#if BUILDFLAG(ENABLE_MDNS)
- if (ResemblesMulticastDNSName(*options_->remote_hostname)) {
+ if (!base::FeatureList::IsEnabled(network::features::kDisableMDNS) && ResemblesMulticastDNSName(*options_->remote_hostname)) {
+ if (!base::FeatureList::IsEnabled(network::features::kDisableMdns) && ResemblesMulticastDNSName(*options_->remote_hostname)) {
parameters->source = net::HostResolverSource::MULTICAST_DNS;
is_mdns_name_ = true;
}
Expand All @@ -190,7 +190,7 @@

net::HostResolver::ResolveHostParameters parameters;
- if (enable_mdns_ && HasLocalTld(host_name_)) {
+ if (enable_mdns_ && HasLocalTld(host_name_) && !base::FeatureList::IsEnabled(feature::kDisableMdns)) {
+ if (enable_mdns_ && HasLocalTld(host_name_) && !base::FeatureList::IsEnabled(features::kDisableMdns)) {
#if BUILDFLAG(ENABLE_MDNS)
// HostResolver/MDnsClient expects a key without a trailing dot.
host.set_host(host_name_.substr(0, host_name_.size() - 1));
Expand Down

0 comments on commit 1aad5fa

Please sign in to comment.