Browse Source

[Fix] Fix client_ip in users settings

tags/1.3.0
Vsevolod Stakhov 8 years ago
parent
commit
74f6d73a40
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/plugins/lua/settings.lua

+ 7
- 0
src/plugins/lua/settings.lua View 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'])


Loading…
Cancel
Save