]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Remove a default param in the definition of DownstreamState's ctor 10441/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 11 Jun 2021 14:11:09 +0000 (16:11 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 11 Jun 2021 14:11:09 +0000 (16:11 +0200)
pdns/dnsdistdist/dnsdist-backend.cc

index 9425f350c823ffd9449e3e055fe1264868791438..3b3e12bdb289aeb8c720218394148ca30e2ffdea 100644 (file)
@@ -153,7 +153,7 @@ void DownstreamState::setWeight(int newWeight)
   }
 }
 
-DownstreamState::DownstreamState(const ComboAddress& remote_, const ComboAddress& sourceAddr_, unsigned int sourceItf_, const std::string& sourceItfName_, size_t numberOfSockets, bool connect=true): sourceItfName(sourceItfName_), remote(remote_), idStates(connect ? g_maxOutstanding : 0), sourceAddr(sourceAddr_), sourceItf(sourceItf_), name(remote_.toStringWithPort()), nameWithAddr(remote_.toStringWithPort())
+DownstreamState::DownstreamState(const ComboAddress& remote_, const ComboAddress& sourceAddr_, unsigned int sourceItf_, const std::string& sourceItfName_, size_t numberOfSockets, bool connect): sourceItfName(sourceItfName_), remote(remote_), idStates(connect ? g_maxOutstanding : 0), sourceAddr(sourceAddr_), sourceItf(sourceItf_), name(remote_.toStringWithPort()), nameWithAddr(remote_.toStringWithPort())
 {
   id = getUniqueID();
   threadStarted.clear();