From: Robin Geuze Date: Fri, 6 Jan 2017 14:16:24 +0000 (+0100) Subject: Fix 'false' instead of '0' and 'on' instead of 'one' X-Git-Tag: rec-4.1.0-alpha1~296^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4859%2Fhead;p=thirdparty%2Fpdns.git Fix 'false' instead of '0' and 'on' instead of 'one' --- diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index a317af9aaa..3dd3ad7d14 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -366,7 +366,7 @@ const std::vector g_consoleKeywords{ { "topResponseRule", true, "", "move the last response rule to the first position" }, { "topRule", true, "", "move the last rule to the first position" }, { "topSlow", true, "[top][, limit][, labels]", "show `top` queries slower than `limit` milliseconds, grouped by last `labels` labels" }, - { "truncateTC", true, "bool", "if set (defaults to no starting with dnsdist 1.2.0) truncate TC=1 answers so they are actually empty. Fixes an issue for PowerDNS Authoritative Server 2.9.22. Note: turning this one breaks compatibility with RFC 6891." }, + { "truncateTC", true, "bool", "if set (defaults to no starting with dnsdist 1.2.0) truncate TC=1 answers so they are actually empty. Fixes an issue for PowerDNS Authoritative Server 2.9.22. Note: turning this on breaks compatibility with RFC 6891." }, { "unregisterDynBPFFilter", true, "DynBPFFilter", "unregister this dynamic BPF filter" }, { "webserver", true, "address:port, password [, apiKey [, customHeaders ]])", "launch a webserver with stats on that address with that password" }, { "whashed", false, "", "Weighted hashed ('sticky') distribution over available servers, based on the server 'weight' parameter" }, diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 8f471c02e1..e9737b9f76 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -136,7 +136,7 @@ int g_tcpSendTimeout{2}; int g_udpTimeout{2}; bool g_servFailOnNoPolicy{false}; -bool g_truncateTC{0}; +bool g_truncateTC{false}; bool g_fixupCase{0}; static void truncateTC(const char* packet, uint16_t* len) try