From 745d73d801b2ee915db49f9440edf918367fa102 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 29 Jan 2021 17:00:13 +0100 Subject: [PATCH] dnsdist: Correctly handle numerical web passwords and keys --- pdns/dnsdist-lua.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index ee7ae516bf..070f87b59a 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -897,7 +897,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) }); - typedef std::unordered_map> > webserveropts_t; + typedef std::unordered_map> > webserveropts_t; luaCtx.writeFunction("setWebserverConfig", [](boost::optional vars) { setLuaSideEffect(); @@ -935,7 +935,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) } if (vars->count("maxConcurrentConnections")) { - setWebserverMaxConcurrentConnections(boost::get(vars->at("maxConcurrentConnections"))); + setWebserverMaxConcurrentConnections(std::stoi(boost::get(vars->at("maxConcurrentConnections")))); } }); -- 2.47.2