]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
second attempt to prevent us from launching the distributor thread when attempting...
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 21 Oct 2014 15:07:29 +0000 (17:07 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 21 Oct 2014 15:07:29 +0000 (17:07 +0200)
pdns/pdns_recursor.cc

index 1c43143e1fed343ca4dc16228a5e7ad6cb6c5c72..a87c6ee9c958ec558aa388496da5d7908e36845f 100644 (file)
@@ -2198,6 +2198,9 @@ int main(int argc, char **argv)
 
     ::arg().set("delegation-only")=toLower(::arg()["delegation-only"]);
 
+    if(::arg().asNum("threads")==1)
+      ::arg().set("pdns-distributes-queries")="no";
+
     if(::arg().mustDo("help")) {
       cout<<"syntax:"<<endl<<endl;
       cout<<::arg().helpstring(::arg()["help"])<<endl;