]> granicus.if.org Git - pdns/commitdiff
Support include-dir properly in reload-acl
authorAki Tuomi <cmouse@desteem.org>
Fri, 7 Feb 2014 10:55:16 +0000 (12:55 +0200)
committerAki Tuomi <cmouse@desteem.org>
Fri, 7 Feb 2014 10:56:22 +0000 (12:56 +0200)
pdns/pdns_recursor.cc

index e80ffab5f61fb949b0dbba042de61ab1c41af72c..0e3158a616eb49fb2d3d73e5473b6e3e824c9931 100644 (file)
@@ -1632,13 +1632,16 @@ void parseACLs()
     ::arg().preParse(g_argc, g_argv, "allow-from-file");
     ::arg().preParseFile(configname.c_str(), "allow-from", LOCAL_NETS);
     ::arg().preParse(g_argc, g_argv, "allow-from");
+    ::arg().preParseFile(configname.c_str(), "include-dir");
     ::arg().preParse(g_argc, g_argv, "include-dir");
 
     // then process includes
     std::vector<std::string> extraConfigs;
+    ::arg().gatherIncludes(extraConfigs);
+
     BOOST_FOREACH(const std::string& fn, extraConfigs) {
-      ::arg().preParseFile(fn.c_str(), "allow-from-file");
-      ::arg().preParseFile(fn.c_str(), "allow-from");
+      ::arg().preParseFile(fn.c_str(), "allow-from-file", ::arg()["allow-from-file"]);
+      ::arg().preParseFile(fn.c_str(), "allow-from", ::arg()["allow-from"]);
     }
   }