]> granicus.if.org Git - pdns/commitdiff
we silently ignored your Lua script if there was no Lua support in PowerDNS Recursor...
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 16 Jan 2016 12:46:33 +0000 (13:46 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 16 Jan 2016 12:46:33 +0000 (13:46 +0100)
pdns/lua-recursor4.cc

index b2208b5dc3841829eef799b73a6c7f6df9c8d2fe..c1312abf3f05a9ca37fd9808957266ea5da97b4f 100644 (file)
@@ -9,7 +9,7 @@
 
 RecursorLua4::RecursorLua4(const std::string &fname)
 {
-  // empty
+  throw std::runtime_error("Attempt to load a Lua script in a PowerDNS binary without Lua support");
 }
 
 bool RecursorLua4::nxdomain(const ComboAddress& remote,const ComboAddress& local, const DNSName& query, const QType& qtype, vector<DNSRecord>& ret, int& res, bool* variable)