From 12475222f1bbac12c125746479a7ec62f42333bd Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 11 Dec 2015 23:27:42 +0100 Subject: [PATCH] fix up so it compiles again, I think - may need more uncommitted infra --- pdns/toysdig.cc | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pdns/toysdig.cc b/pdns/toysdig.cc index 772cc03ed..fccbd305b 100644 --- a/pdns/toysdig.cc +++ b/pdns/toysdig.cc @@ -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 g_luaconfs; +LuaConfigItems::LuaConfigItems() +{ + auto ds=std::unique_ptr(dynamic_cast(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"; -- 2.40.0