Skip to content

Commit

Permalink
Backport PowerDNS#6164
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Feb 13, 2018
2 parents 7b8c947 + eaca956 commit 1eb1099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pdns/dnsdist-lua2.cc
Expand Up @@ -1382,7 +1382,9 @@ void moreLua(bool client)
g_useTCPSinglePipe = flag;
});

g_lua.writeFunction("snmpAgent", [](bool enableTraps, boost::optional<std::string> masterSocket) {
g_lua.writeFunction("snmpAgent", [client](bool enableTraps, boost::optional<std::string> masterSocket) {
if(client)
return;
#ifdef HAVE_NET_SNMP
if (g_configurationDone) {
errlog("snmpAgent() cannot be used at runtime!");
Expand Down

0 comments on commit 1eb1099

Please sign in to comment.