From 052ac720275dbb3f364b62c9bccf4753d49598d5 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 11 Feb 2020 12:30:29 +0100 Subject: [PATCH] Warn at refresh=0 (cherry picked from commit 1778d156949380dff86304aa5dbbfb5e10351302) --- pdns/rec-lua-conf.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/rec-lua-conf.cc b/pdns/rec-lua-conf.cc index aae001107a..046f1d485b 100644 --- a/pdns/rec-lua-conf.cc +++ b/pdns/rec-lua-conf.cc @@ -300,6 +300,9 @@ void loadRecursorLuaConfig(const std::string& fname, luaConfigDelayedThreads& de if(have.count("refresh")) { refresh = boost::get(have["refresh"]); + if (refresh == 0) { + g_log<