From 7d338903e25cc9c3301a7bc9b323d1a739fc5107 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 9 Mar 2018 14:34:12 +0100 Subject: [PATCH] remove recursor= leftovers --- pdns/common_startup.cc | 1 - pdns/dnsproxy.cc | 32 -------------------------------- pdns/dnsproxy.hh | 1 - 3 files changed, 34 deletions(-) diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 4c74222c9..de5ed573a 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -515,7 +515,6 @@ void mainthread() AuthWebServer webserver; Utility::dropUserPrivs(newuid); - // We need to start the Recursor Proxy before doing secpoll, see issue #2453 if(::arg().mustDo("resolver")){ DP=new DNSProxy(::arg()["resolver"]); DP->go(); diff --git a/pdns/dnsproxy.cc b/pdns/dnsproxy.cc index 114c47253..a9b9745a0 100644 --- a/pdns/dnsproxy.cc +++ b/pdns/dnsproxy.cc @@ -85,38 +85,6 @@ void DNSProxy::go() pthread_create(&tid,0,&launchhelper,this); } -/** returns false if p->remote is not allowed to recurse via us */ -bool DNSProxy::sendPacket(DNSPacket *p) -{ - uint16_t id; - { - Lock l(&d_lock); - id=getID_locked(); - - ConntrackEntry ce; - ce.id = p->d.id; - ce.remote = p->d_remote; - ce.outsock = p->getSocket(); - ce.created = time( NULL ); - ce.qtype = p->qtype.getCode(); - ce.qname = p->qdomain; - ce.anyLocal = p->d_anyLocal; - ce.complete=0; - d_conntrack[id]=ce; - } - p->d.id=id^d_xor; - p->commitD(); - - const string& buffer = p->getString(); - - if(send(d_sock,buffer.c_str(), buffer.length() , 0)<0) { // zoom - L<qtype, plonk it in the answer section of 'r' with name target bool DNSProxy::completePacket(DNSPacket *r, const DNSName& target,const DNSName& aname) { diff --git a/pdns/dnsproxy.hh b/pdns/dnsproxy.hh index 527eabada..9d968834d 100644 --- a/pdns/dnsproxy.hh +++ b/pdns/dnsproxy.hh @@ -54,7 +54,6 @@ public: DNSProxy(const string &ip); //!< creates socket ~DNSProxy(); //