]> source.dussan.org Git - rspamd.git/commitdiff
Fix output
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Dec 2015 18:17:02 +0000 (18:17 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Dec 2015 18:17:02 +0000 (18:17 +0000)
src/rspamadm/fuzzy_stat.lua

index d0d59532d4621f56bebb8bc0c11bd739c2d3d2e9..c7a9b49b6b520a8fa44bd3cf9393487c42299e16 100644 (file)
@@ -31,7 +31,12 @@ local function add_data(target, src)
         target[k] = v
       end
     else
-      target[k] = v
+      if not target['ips'] then target['ips'] = {} end
+      -- Iterate over IPs
+      for ip,st in pairs(v) do
+        if not target['ips'][ip] then target['ips'][ip] = {} end
+        add_data(target['ips'][ip], st)
+      end
     end
   end
 end