From: Peter van Dijk Date: Fri, 13 Feb 2015 16:27:08 +0000 (+0100) Subject: re-allow building without lua X-Git-Tag: dnsdist-1.0.0-alpha1~306^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9fe5a8b18403725364dfdbf0716229362956659;p=pdns re-allow building without lua --- diff --git a/pdns/lua-auth.cc b/pdns/lua-auth.cc index c85e73e96..fce7ae6d9 100644 --- a/pdns/lua-auth.cc +++ b/pdns/lua-auth.cc @@ -13,6 +13,15 @@ DNSPacket* AuthLua::prequery(DNSPacket *p) return 0; } +int AuthLua::police(DNSPacket *req, DNSPacket *resp, bool isTcp) +{ + return PolicyDecision::PASS; +} + +string AuthLua::policycmd(const vector&parts) { + return "no policy script loaded"; +} + bool AuthLua::axfrfilter(const ComboAddress& remote, const string& zone, const DNSResourceRecord& in, vector& out) { return false;