]> granicus.if.org Git - pdns/commitdiff
re-allow building without lua
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 13 Feb 2015 16:27:08 +0000 (17:27 +0100)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 13 Feb 2015 16:27:08 +0000 (17:27 +0100)
pdns/lua-auth.cc

index c85e73e968583a461f50dbf5df71cb2eede8c3e4..fce7ae6d94ef774fddd917cd8be28c6e1708eacb 100644 (file)
@@ -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<string>&parts) {
+  return "no policy script loaded";
+}
+
 bool AuthLua::axfrfilter(const ComboAddress& remote, const string& zone, const DNSResourceRecord& in, vector<DNSResourceRecord>& out)
 {
   return false;