Skip to content

Commit

Permalink
dnsdist: Fix compilation issue
Browse files Browse the repository at this point in the history
Introduced by a conflict between PowerDNS#12922 and PowerDNS#13556.
  • Loading branch information
rgacogne committed Dec 8, 2023
1 parent 94ec5e7 commit b7b61ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pdns/dnsdist-lua.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2656,7 +2656,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck)
checkAllParametersConsumed("addDOH3Local", vars);
}
g_doh3locals.push_back(frontend);
auto clientState = std::make_unique<ClientState>(frontend->d_local, false, reusePort, tcpFastOpenQueueSize, interface, cpus);
auto clientState = std::make_unique<ClientState>(frontend->d_local, false, reusePort, tcpFastOpenQueueSize, interface, cpus, enableProxyProtocol);
clientState->doh3Frontend = frontend;
clientState->d_additionalAddresses = std::move(additionalAddresses);

Expand Down Expand Up @@ -2691,9 +2691,10 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck)
std::string interface;
std::set<int> cpus;
std::vector<std::pair<ComboAddress, int>> additionalAddresses;
bool enableProxyProtocol = true;

if (vars) {
parseLocalBindVars(vars, reusePort, tcpFastOpenQueueSize, interface, cpus, tcpListenQueueSize, maxInFlightQueriesPerConn, tcpMaxConcurrentConnections);
parseLocalBindVars(vars, reusePort, tcpFastOpenQueueSize, interface, cpus, tcpListenQueueSize, maxInFlightQueriesPerConn, tcpMaxConcurrentConnections, enableProxyProtocol);
if (maxInFlightQueriesPerConn > 0) {
frontend->d_quicheParams.d_maxInFlight = maxInFlightQueriesPerConn;
}
Expand Down

0 comments on commit b7b61ed

Please sign in to comment.