From c80110cb657b8a22c08b8213dcd1f95310a82f8b Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 4 Dec 2018 10:27:28 +0100 Subject: [PATCH] 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. --- 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 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")) { -- 2.47.2