]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix client_ip in users settings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Jul 2016 17:50:12 +0000 (18:50 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Jul 2016 17:50:12 +0000 (18:50 +0100)
src/plugins/lua/settings.lua

index 410aad7af13deae818e76e42597e4ebfabe50aee..cb7e4743f6d2b286fb4fb690c05d3d29885d8739 100644 (file)
@@ -406,6 +406,13 @@ local function process_settings_table(tbl)
         out['ip'] = check_table(elt['ip'], ip)
       end
     end
+    if elt['client_ip'] then
+      local ip = process_ip(elt['client_ip'])
+
+      if ip then
+        out['client_ip'] = check_table(elt['client_ip'], ip)
+      end
+    end
     if elt['from'] then
       local from = process_addr(elt['from'])