]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #8940 from pieterlexis/resolver-query-local-address6
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 18 May 2020 12:40:00 +0000 (14:40 +0200)
committerGitHub <noreply@github.com>
Mon, 18 May 2020 12:40:00 +0000 (14:40 +0200)
Merge query-local-address6 into query-local-address

14 files changed:
1  2 
docs/settings.rst
pdns/Makefile.am
pdns/common_startup.cc
pdns/communicator.cc
pdns/ixfrdist.cc
pdns/ixplore.cc
pdns/mastercommunicator.cc
pdns/pdns_recursor.cc
pdns/recursordist/Makefile.am
pdns/recursordist/docs/settings.rst
pdns/rfc2136handler.cc
pdns/slavecommunicator.cc
pdns/syncres.hh
pdns/tcpreceiver.cc

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc pdns/ixplore.cc
Simple merge
Simple merge
index 0db01c9d34419bea68d57e1e37e1a340691e86e9,96bdffd322e10431edaa53016a321a7b8960176d..c209fc81603d4dbcb897eeec9d1ce232d02beadf
@@@ -4946,19 -4798,10 +4918,19 @@@ int main(int argc, char **argv
      ::arg().set("socket-group","Group of socket")="";
      ::arg().set("socket-mode", "Permissions for socket")="";
  
 -    ::arg().set("socket-dir",string("Where the controlsocket will live, ")+LOCALSTATEDIR+"/pdns-recursor when unset and not chrooted" )="";
 +    ::arg().set("socket-dir",string("Where the controlsocket will live, ")+LOCALSTATEDIR+"/pdns-recursor when unset and not chrooted"
 +#ifdef HAVE_SYSTEMD
 +      + ". Set to the RUNTIME_DIRECTORY environment variable when that variable has a value (e.g. under systemd).")="";
 +   auto runtimeDir = getenv("RUNTIME_DIRECTORY");
 +   if (runtimeDir != nullptr) {
 +     ::arg().set("socket-dir") = runtimeDir;
 +   }
 +#else
 +      )="";
 +#endif
      ::arg().set("delegation-only","Which domains we only accept delegations from")="";
      ::arg().set("query-local-address","Source IP address for sending queries")="0.0.0.0";
-     ::arg().set("query-local-address6","Source IPv6 address for sending queries. IF UNSET, IPv6 WILL NOT BE USED FOR OUTGOING QUERIES")="";
+     ::arg().set("query-local-address6","DEPRECATED: Use query-local-address for IPv6 as well. Source IPv6 address for sending queries. IF UNSET, IPv6 WILL NOT BE USED FOR OUTGOING QUERIES")="";
      ::arg().set("client-tcp-timeout","Timeout in seconds when talking to TCP clients")="2";
      ::arg().set("max-mthreads", "Maximum number of simultaneous Mtasker threads")="2048";
      ::arg().set("max-tcp-clients","Maximum number of simultaneous TCP clients")="128";
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc pdns/syncres.hh
Simple merge
Simple merge