Skip to content

Commit

Permalink
Support include-dir properly in reload-acl
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed Feb 7, 2014
1 parent 829849d commit 242b90e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pdns/pdns_recursor.cc
Expand Up @@ -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"]);
}
}

Expand Down

0 comments on commit 242b90e

Please sign in to comment.