diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-21 18:50:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-21 18:50:12 +0100 |
commit | 74f6d73a40512220b05a7f0e0d6f5558a58b2146 (patch) | |
tree | 481a26b4c18f873e29f46ac457c2744c48062fb9 /src | |
parent | ac08fb2c7a6dbc516fca2c904d79049a2d37d3c4 (diff) | |
download | rspamd-74f6d73a40512220b05a7f0e0d6f5558a58b2146.tar.gz rspamd-74f6d73a40512220b05a7f0e0d6f5558a58b2146.zip |
[Fix] Fix client_ip in users settings
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/settings.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 410aad7af..cb7e4743f 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -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']) |