From d7ea583ad0d62557af7a66a08571c6a907bf2ff0 Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Wed, 7 Oct 2020 11:24:16 +0200 Subject: [PATCH] Bring back --rpz-log-qtype-qclass feature-test option It was unintentionally removed during a backport. --- bin/tests/system/feature-test.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/tests/system/feature-test.c b/bin/tests/system/feature-test.c index 05882d10b0..5e473ab570 100644 --- a/bin/tests/system/feature-test.c +++ b/bin/tests/system/feature-test.c @@ -47,6 +47,7 @@ usage() { fprintf(stderr, "\t--have-geoip\n"); fprintf(stderr, "\t--have-libxml2\n"); fprintf(stderr, "\t--ipv6only=no\n"); + fprintf(stderr, "\t--rpz-log-qtype-qclass\n"); fprintf(stderr, "\t--rpz-nsdname\n"); fprintf(stderr, "\t--rpz-nsip\n"); fprintf(stderr, "\t--tsan\n"); @@ -177,6 +178,14 @@ main(int argc, char **argv) { #endif } + if (strcmp(argv[1], "--rpz-log-qtype-qclass") == 0) { +#ifdef RPZ_LOG_QTYPE_QCLASS + return (0); +#else + return (1); +#endif + } + if (strcmp(argv[1], "--rpz-nsdname") == 0) { #ifdef ENABLE_RPZ_NSDNAME return (0);