]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Warn at refresh=0 8778/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 11 Feb 2020 11:30:29 +0000 (12:30 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 11 Feb 2020 11:30:29 +0000 (12:30 +0100)
pdns/rec-lua-conf.cc

index aae001107acaf330a937fe2b7a152cea54734437..046f1d485ba1700cdd03372cb1f45cdbb8ad50ac 100644 (file)
@@ -300,6 +300,9 @@ void loadRecursorLuaConfig(const std::string& fname, luaConfigDelayedThreads& de
 
           if(have.count("refresh")) {
             refresh = boost::get<uint32_t>(have["refresh"]);
+            if (refresh == 0) {
+              g_log<<Logger::Warning<<"rpzMaster refresh value of 0 ignored"<<endl;
+            }
           }
 
           if(have.count("maxReceivedMBytes")) {