CommunicatorClass Communicator;
shared_ptr<UDPNameserver> N;
int avg_latency;
-TCPNameserver *TN;
+unique_ptr<TCPNameserver> TN;
static vector<DNSDistributor*> g_distributors;
vector<std::shared_ptr<UDPNameserver> > g_udpReceivers;
::arg().set("queue-limit","Maximum number of milliseconds to queue a query")="1500";
::arg().set("resolver","Use this resolver for ALIAS and the internal stub resolver")="no";
::arg().set("udp-truncation-threshold", "Maximum UDP response size before we truncate")="1232";
- ::arg().set("disable-tcp","Do not listen to TCP queries")="no";
::arg().set("config-name","Name of this virtual configuration - will rename the binary image")="";
::arg().setSwitch("slave","Act as a slave")="no";
::arg().setSwitch("master","Act as a master")="no";
- ::arg().setSwitch("supermaster", "Act as a supermaster")="no";
+ ::arg().setSwitch("superslave", "Act as a superslave")="no";
::arg().setSwitch("disable-axfr-rectify","Disable the rectify step during an outgoing AXFR. Only required for regression testing.")="no";
::arg().setSwitch("guardian","Run within a guardian process")="no";
::arg().setSwitch("prevent-self-notification","Don't send notifications to what we think is ourself")="yes";
if(::arg().mustDo("slave") || ::arg().mustDo("master") || !::arg()["forward-notify"].empty())
Communicator.go();
- if(TN)
- TN->go(); // tcp nameserver launch
+ TN->go(); // tcp nameserver launch
// fork(); (this worked :-))
unsigned int max_rthreads= ::arg().asNum("receiver-threads", 1);