From b7b61ed5ff630cba5afc484acd43c4639a33c5e2 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 8 Dec 2023 18:01:06 +0100 Subject: [PATCH] dnsdist: Fix compilation issue Introduced by a conflict between #12922 and #13556. --- pdns/dnsdist-lua.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index c842b0641f57..60e963876562 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -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(frontend->d_local, false, reusePort, tcpFastOpenQueueSize, interface, cpus); + auto clientState = std::make_unique(frontend->d_local, false, reusePort, tcpFastOpenQueueSize, interface, cpus, enableProxyProtocol); clientState->doh3Frontend = frontend; clientState->d_additionalAddresses = std::move(additionalAddresses); @@ -2691,9 +2691,10 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) std::string interface; std::set cpus; std::vector> 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; }