]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix the DoH (https) response information in verbose mode
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 17 Jul 2019 08:24:10 +0000 (10:24 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 17 Jul 2019 08:24:10 +0000 (10:24 +0200)
pdns/dnsdist.cc

index 3e6c53284a200efd5078b74a560c6a7d0688d94a..244b3ba54308e8fa2e4d85ce89539ad840ed9918 100644 (file)
@@ -570,6 +570,7 @@ try {
           continue;
         }
 
+        bool isDoH = du != nullptr;
         /* atomically mark the state as available */
         int oldFD = ids->origFD.exchange(-1);
         if (oldFD == origFD) {
@@ -630,7 +631,7 @@ try {
 
         double udiff = ids->sentTime.udiff();
         vinfolog("Got answer from %s, relayed to %s%s, took %f usec", dss->remote.toStringWithPort(), ids->origRemote.toStringWithPort(),
-                 ids->du ? " (https)": "", udiff);
+                 isDoH ? " (https)": "", udiff);
 
         struct timespec ts;
         gettime(&ts);