]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: remove local-ipv6, query-local-address6 9552/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 29 Sep 2020 12:42:17 +0000 (14:42 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 29 Sep 2020 14:57:39 +0000 (16:57 +0200)
docs/settings.rst
pdns/common_startup.cc
pdns/nameserver.cc
pdns/tcpreceiver.cc

index 8b5121125810aa761771755d504cfc18de1f815e..a29c7d6ae8f76509a62372e984df8b478e70840f 100644 (file)
@@ -1309,8 +1309,7 @@ the network).
 ``query-local-address6``
 ------------------------
 .. deprecated:: 4.4.0
-  Use :ref:`setting-query-local-address`. The default has been changed
-  from '::' to unset.
+  Removed. Use :ref:`setting-query-local-address`.
 
 -  IPv6 Address
 -  Default: unset
index 05b0cca5716b54b764c48faabeeeb6187ecb43fc..8807c10c616c58c7c85b00d7cc4c0abc64ac0ad2 100644 (file)
@@ -97,12 +97,10 @@ void declareArguments()
   ::arg().setSwitch("log-dns-details","If PDNS should log DNS non-erroneous details")="no";
   ::arg().setSwitch("log-dns-queries","If PDNS should log all incoming DNS queries")="no";
   ::arg().set("local-address","Local IP addresses to which we bind")="0.0.0.0, ::";
-  ::arg().set("local-ipv6","DEPRECATED, will be removed, move your IPs to local-address")="";
   ::arg().setSwitch("local-address-nonexist-fail","Fail to start if one or more of the local-address's do not exist on this server")="yes";
   ::arg().setSwitch("non-local-bind", "Enable binding to non-local addresses by using FREEBIND / BINDANY socket options")="no";
   ::arg().setSwitch("reuseport","Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket")="no";
   ::arg().set("query-local-address","Source IP addresses for sending queries")="0.0.0.0 ::";
-  ::arg().set("query-local-address6","DEPRECATED: Use query-local-address. Source IPv6 address for sending queries")="";
   ::arg().set("overload-queue-length","Maximum queuelength moving to packetcache only")="0";
   ::arg().set("max-queue-length","Maximum queuelength before considering situation lost")="5000";
 
@@ -634,10 +632,6 @@ void mainthread()
   }
 
   pdns::parseQueryLocalAddress(::arg()["query-local-address"]);
-  if (!::arg()["query-local-address6"].empty()) {
-    g_log<<Logger::Warning<<"query-local-address6 is deprecated and will be removed in a future version. Please use query-local-address for IPv6 addresses as well"<<endl;
-    pdns::parseQueryLocalAddress(::arg()["query-local-address6"]);
-  }
 
   // NOW SAFE TO CREATE THREADS!
   dl->go();
index 6d658155a3df88dbd88ca6765199d88d445bc806..57ee709442564731d0cf078226f4694755309b9d 100644 (file)
@@ -89,10 +89,6 @@ vector<ComboAddress> g_localaddresses; // not static, our unit tests need to pok
 void UDPNameserver::bindAddresses()
 {
   vector<string>locals;
-  stringtok(locals,::arg()["local-ipv6"]," ,");
-  if (!locals.empty()) {
-    g_log<<Logger::Error<<"NOTE: Deprecated local-ipv6 setting used. Please move those addresses to the local-address setting."<<endl;
-  }
   stringtok(locals,::arg()["local-address"]," ,");
 
   int one = 1;
index 318c252d6e40b39a173209a3c06f22ed99d5a0c2..a574a66f4680aceeecd2c0f4921dac817597e0d2 100644 (file)
@@ -1142,7 +1142,6 @@ TCPNameserver::TCPNameserver()
   d_maxTCPConnections = ::arg().asNum( "max-tcp-connections" );
 
   vector<string>locals;
-  stringtok(locals,::arg()["local-ipv6"]," ,");
   stringtok(locals,::arg()["local-address"]," ,");
   if(locals.empty())
     throw PDNSException("No local addresses specified");