From: Remi Gacogne Date: Tue, 28 Apr 2020 10:12:12 +0000 (+0200) Subject: dnsdist: Fix duplicated HTTP/1 counter in 'showDOHFrontends()' X-Git-Tag: dnsdist-1.5.0-rc2~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39c323e506646e2a11713a7814d39e0a61ead81c;p=thirdparty%2Fpdns.git dnsdist: Fix duplicated HTTP/1 counter in 'showDOHFrontends()' --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index d51156e8ad..bdde09e1f8 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1960,7 +1960,7 @@ static void setupLuaConfig(bool client, bool configCheck) ret << (fmt % "#" % "Address" % "HTTP" % "HTTP/1" % "HTTP/2" % "GET" % "POST" % "Bad" % "Errors" % "Redirects" % "Valid" % "# ticket keys" % "Rotation delay" % "Next rotation") << endl; size_t counter = 0; for (const auto& ctx : g_dohlocals) { - ret << (fmt % counter % ctx->d_local.toStringWithPort() % ctx->d_httpconnects % ctx->d_http1Stats.d_nbQueries % ctx->d_http1Stats.d_nbQueries % ctx->d_getqueries % ctx->d_postqueries % ctx->d_badrequests % ctx->d_errorresponses % ctx->d_redirectresponses % ctx->d_validresponses % ctx->getTicketsKeysCount() % ctx->getTicketsKeyRotationDelay() % ctx->getNextTicketsKeyRotation()) << endl; + ret << (fmt % counter % ctx->d_local.toStringWithPort() % ctx->d_httpconnects % ctx->d_http1Stats.d_nbQueries % ctx->d_http2Stats.d_nbQueries % ctx->d_getqueries % ctx->d_postqueries % ctx->d_badrequests % ctx->d_errorresponses % ctx->d_redirectresponses % ctx->d_validresponses % ctx->getTicketsKeysCount() % ctx->getTicketsKeyRotationDelay() % ctx->getNextTicketsKeyRotation()) << endl; counter++; } g_outputBuffer = ret.str();