Commit 2cd4a3ebc6626619f103ff2eaaa0269ec5a050ba
1 parent
6ab66f3a
Allow lower minimum session life
And fix off-by-one error.
Showing
1 changed file
with
2 additions
and
2 deletions
configfileparser.cpp
| ... | ... | @@ -407,9 +407,9 @@ void ConfigFileParser::loadFile(bool test) |
| 407 | 407 | if (key == "expire_sessions_after_seconds") |
| 408 | 408 | { |
| 409 | 409 | uint32_t newVal = std::stoi(value); |
| 410 | - if (newVal > 0 && newVal <= 300) // 0 means disable | |
| 410 | + if (newVal > 0 && newVal < 60) // 0 means disable | |
| 411 | 411 | { |
| 412 | - throw ConfigFileException(formatString("expire_sessions_after_seconds value '%d' is invalid. Valid values are 0, or 300 or higher.", newVal)); | |
| 412 | + throw ConfigFileException(formatString("expire_sessions_after_seconds value '%d' is invalid. Valid values are 0, or 60 or higher.", newVal)); | |
| 413 | 413 | } |
| 414 | 414 | tmpSettings->expireSessionsAfterSeconds = newVal; |
| 415 | 415 | } | ... | ... |