]> granicus.if.org Git - pdns/commitdiff
fix up so it compiles again, I think - may need more uncommitted infra
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 11 Dec 2015 22:27:42 +0000 (23:27 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 11 Dec 2015 22:27:42 +0000 (23:27 +0100)
pdns/toysdig.cc

index 772cc03ed4bcd014d8daaf26936a7af7480f6b48..fccbd305b9b5238e44dfe2846b20bf4b00fa988f 100644 (file)
@@ -2,6 +2,7 @@
 #include "config.h"
 #endif
 #include "dnsparser.hh"
+#include "rec-lua-conf.hh"
 #include "sstuff.hh"
 #include "misc.hh"
 #include "dnswriter.hh"
@@ -94,19 +95,25 @@ private:
   ComboAddress d_dest;
 };
 
+GlobalStateHolder<LuaConfigItems> g_luaconfs;
+LuaConfigItems::LuaConfigItems()
+{
+  auto ds=std::unique_ptr<DSRecordContent>(dynamic_cast<DSRecordContent*>(DSRecordContent::make("19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5")));
+  // this hurts physically
+  dsAnchors[DNSName(".")] = *ds;
+}
 
-
-
-
+DNSFilterEngine::DNSFilterEngine() {}
 
 int main(int argc, char** argv)
 try
 {
   reportAllTypes();
-  g_rootDS =  "19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5";
+//  g_rootDS =  "19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5";
 
-  if(argv[5])
-    g_rootDS = argv[5];
+//  if(argv[5])
+//    g_rootDS = argv[5];
+  
   //  g_anchors.insert(DSRecordContent("19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5"));
   if(argc < 4) {
     cerr<<"Syntax: toysdig IP-address port question question-type [rootDS]\n";