mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
Update dns_transaction.cc
This commit is contained in:
parent
3f6bd4a00d
commit
f975998071
1 changed files with 2 additions and 3 deletions
|
@ -1223,9 +1223,9 @@ class DnsTransactionImpl : public DnsTransaction,
|
|||
}
|
||||
|
||||
std::string qname;
|
||||
for (size_t i = 0; i < config.search.size(); ++i) {
|
||||
for (const auto& suffix : config.search) {
|
||||
// Ignore invalid (too long) combinations.
|
||||
if (!DNSDomainFromDot(hostname_ + "." + config.search[i], &qname))
|
||||
if (!DNSDomainFromDot(hostname_ + "." + suffix, &qname))
|
||||
continue;
|
||||
if (qname.size() == labeled_hostname.size()) {
|
||||
if (had_hostname)
|
||||
|
@ -1530,7 +1530,6 @@ class DnsTransactionImpl : public DnsTransaction,
|
|||
result = StartQuery();
|
||||
}
|
||||
break;
|
||||
case ERR_CONNECTION_REFUSED:
|
||||
case ERR_DNS_TIMED_OUT:
|
||||
timer_.Stop();
|
||||
|
||||
|
|
Loading…
Reference in a new issue