]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: improve log message when we use TCP a bit
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2020 17:45:59 +0000 (18:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 Dec 2020 21:46:59 +0000 (22:46 +0100)
DNS-over-TLS being in use isn't precisely the same as "UDP not
supported". Let's make this clearer.

src/resolve/resolved-dns-transaction.c

index 95f643ddcb3212579fc4f954a941e1f8ac6f912e..60e8e94e63e80053cad85905b036b2c341c3065d 100644 (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);
         }