From 74f6d73a40512220b05a7f0e0d6f5558a58b2146 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 Jul 2016 18:50:12 +0100 Subject: [PATCH] [Fix] Fix client_ip in users settings --- src/plugins/lua/settings.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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']) -- 2.39.5