소스 검색

[Fix] Fix client_ip in users settings

tags/1.3.0
Vsevolod Stakhov 8 년 전
부모
커밋
74f6d73a40
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      src/plugins/lua/settings.lua

+ 7
- 0
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'])


Loading…
취소
저장