From 3c72bc54c15b5bc970b299955130cf9e8063b4ef Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 17 Jul 2019 10:24:10 +0200 Subject: [PATCH] dnsdist: Fix the DoH (https) response information in verbose mode --- pdns/dnsdist.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 3e6c53284..244b3ba54 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -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); -- 2.50.1