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:
Lennart Poettering 2014-08-05 04:15:45 +02:00
parent 8c0b803b97
commit 13b551acb6
1 changed files with 5 additions and 0 deletions

View File

@ -523,6 +523,11 @@ int dns_transaction_go(DnsTransaction *t) {
return 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 */
dns_scope_next_dns_server(t->scope);