From: Remi Gacogne Date: Tue, 4 Dec 2018 09:27:28 +0000 (+0100) Subject: dnsdist: Fix the type of numerical DNS over TLS's parameters X-Git-Tag: auth-4.2.0-alpha1~8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c80110cb657b8a22c08b8213dcd1f95310a82f8b;p=thirdparty%2Fpdns.git dnsdist: Fix the type of numerical DNS over TLS's parameters We were trying to retrieve two parameters, ticketsKeysRotationDelay and numberOfTicketsKeys, as strings then convert them to integers, but the Lua wrapper already exposes them as numerical values. --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 365b47b21b..6b46afbc10 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1625,11 +1625,11 @@ void setupLuaConfig(bool client) } if (vars->count("ticketsKeysRotationDelay")) { - frontend->d_ticketsKeyRotationDelay = std::stoi(boost::get((*vars)["ticketsKeysRotationDelay"])); + frontend->d_ticketsKeyRotationDelay = boost::get((*vars)["ticketsKeysRotationDelay"]); } if (vars->count("numberOfTicketsKeys")) { - frontend->d_numberOfTicketsKeys = std::stoi(boost::get((*vars)["numberOfTicketsKeys"])); + frontend->d_numberOfTicketsKeys = boost::get((*vars)["numberOfTicketsKeys"]); } if (vars->count("sessionTickets")) {