resolved: when sending fails, don't try connecting to the next DNS server if we actually use LLMNR as protocol
This commit is contained in:
parent
8c0b803b97
commit
13b551acb6
|
@ -523,6 +523,11 @@ int dns_transaction_go(DnsTransaction *t) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
if (t->scope->protocol != DNS_PROTOCOL_DNS) {
|
||||||
|
dns_transaction_complete(t, DNS_TRANSACTION_RESOURCES);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Couldn't send? Try immediately again, with a new server */
|
/* Couldn't send? Try immediately again, with a new server */
|
||||||
dns_scope_next_dns_server(t->scope);
|
dns_scope_next_dns_server(t->scope);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue