Commit 0ed64286 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen
Browse files

require connection tracking with conn-limit

parent ebfbfc9e
......@@ -60,6 +60,9 @@ function Filter:init(...)
local limit = self:limit()
if limit then
if limit == 'conn-limit' and self['no-track'] then
self:error('Tracking required with connection limit')
if type(self[limit]) ~= 'table' then
self[limit] = {count=self[limit]}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment