From b7ef582884c603ea45e602c3e42f254cf869d2d7 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 30 Aug 2016 11:09:38 +0200 Subject: [PATCH] Parse query-local-address before lua-config-file @42wim discovered that the query-local-address was not used for the initial RPZ AXFR. However, it was used in subsequent IXFRs. It appears that we executed the lua-config-file before checking the query-local-address(6). --- pdns/pdns_recursor.cc | 52 +++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 08bcf5b39..5f27a628c 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2551,6 +2551,32 @@ int serviceMain(int argc, char*argv[]) g_disthashseed=dns_random(0xffffffff); + checkLinuxIPv6Limits(); + try { + vector addrs; + if(!::arg()["query-local-address6"].empty()) { + SyncRes::s_doIPv6=true; + L< addrs; - if(!::arg()["query-local-address6"].empty()) { - SyncRes::s_doIPv6=true; - L<