resolved: improve log message when we use TCP a bit

DNS-over-TLS being in use isn't precisely the same as "UDP not
supported". Let's make this clearer.
This commit is contained in:
Lennart Poettering 2020-11-10 18:45:59 +01:00
parent ce9fb09e96
commit 6c0bacc146
1 changed files with 1 additions and 1 deletions

View File

@ -1712,7 +1712,7 @@ int dns_transaction_go(DnsTransaction *t) {
if (r == -EMSGSIZE)
log_debug("Sending query via TCP since it is too large.");
else if (r == -EAGAIN)
log_debug("Sending query via TCP since UDP isn't supported.");
log_debug("Sending query via TCP since UDP isn't supported or DNS-over-TLS is selected.");
if (IN_SET(r, -EMSGSIZE, -EAGAIN))
r = dns_transaction_emit_tcp(t);
}