From 2cd4a3ebc6626619f103ff2eaaa0269ec5a050ba Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Mon, 2 May 2022 20:25:40 +0200 Subject: [PATCH] Allow lower minimum session life --- configfileparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configfileparser.cpp b/configfileparser.cpp index ca2702d..a14e58e 100644 --- a/configfileparser.cpp +++ b/configfileparser.cpp @@ -407,9 +407,9 @@ void ConfigFileParser::loadFile(bool test) if (key == "expire_sessions_after_seconds") { uint32_t newVal = std::stoi(value); - if (newVal > 0 && newVal <= 300) // 0 means disable + if (newVal > 0 && newVal < 60) // 0 means disable { - throw ConfigFileException(formatString("expire_sessions_after_seconds value '%d' is invalid. Valid values are 0, or 300 or higher.", newVal)); + throw ConfigFileException(formatString("expire_sessions_after_seconds value '%d' is invalid. Valid values are 0, or 60 or higher.", newVal)); } tmpSettings->expireSessionsAfterSeconds = newVal; } -- libgit2 0.21.4