From 08f721a07280cf59abd167ad0fcfcb6f9bb8fb19 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 11 May 2021 14:10:26 +0100 Subject: mod_limits: Don't emit error when no burst period is configured --- plugins/mod_limits.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_limits.lua b/plugins/mod_limits.lua index 914d5c44..616dca1b 100644 --- a/plugins/mod_limits.lua +++ b/plugins/mod_limits.lua @@ -31,7 +31,7 @@ local function parse_burst(burst, sess_type) burst = burst:match("^(%d+) ?s$"); end local n_burst = tonumber(burst); - if not n_burst then + if burst and not n_burst then module:log("error", "Unable to parse burst for %s: %q, using default burst interval (%ds)", sess_type, tostring(burst), default_burst); end return n_burst or default_burst; -- cgit v1.2.3