Co-authored-by: Remi Gacogne <github@coredump.fr>
{"NXRRSET", RCode::NXRRSet },
{"NOTAUTH", RCode::NotAuth },
{"NOTZONE", RCode::NotZone },
- {"DROP", -2 }}; // To give backport-incompatibilityy warning
+ {"DROP", -2 }}; // To give backport-incompatibility warning
for(const auto& rcode : rcodes)
d_pd.push_back({rcode.first, rcode.second});
static void warnDrop(const RecursorLua4::DNSQuestion& dq)
{
if (dq.rcode == -2) {
- g_log << Logger::Error << "Returing -2 (pdns.DROP) is not supported anymore, see https://docs.powerdns.com/recursor/lua-scripting/hooks.html#hooksemantics" << endl;
+ g_log << Logger::Error << "Returning -2 (pdns.DROP) is not supported anymore, see https://docs.powerdns.com/recursor/lua-scripting/hooks.html#hooksemantics" << endl;
// We *could* set policy here, but that would also mean interfering with rcode and the return code of the hook.
// So leave it at the error message.
}