Skip to content

Commit

Permalink
[Minor] Fix flags stat
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed May 12, 2023
1 parent b2452e7 commit 860079f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lualib/rspamadm/fuzzy_stat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ local function add_data(target, src)
if not target['ips'][ip] then target['ips'][ip] = {} end
add_data(target['ips'][ip], st)
end
elseif k == 'flags' then
if not target['flags'] then target['flags'] = {} end
-- Iterate over Flags
for flag,st in pairs(v) do
if not target['flags'][flag] then target['flags'][flag] = {} end
add_data(target['flags'][flag], st)
end
elseif k == 'keypair' then
if type(v.extensions) == 'table' then
if type(v.extensions.name) == 'string' then
Expand Down

0 comments on commit 860079f

Please sign in to comment.