|
|
@ -398,7 +398,7 @@ end |
|
|
|
function post_X_Forwarded() |
|
|
|
function post_X_Forwarded() |
|
|
|
if not config['post']['open'] or not C:is_site_config('post') then return false end |
|
|
|
if not config['post']['open'] or not C:is_site_config('post') then return false end |
|
|
|
if params['method'] ~= "POST" then return false end |
|
|
|
if params['method'] ~= "POST" then return false end |
|
|
|
if C:is_ngx_match(post_rules,params["request_header"]['X-forwarded-For'],'post') then |
|
|
|
if C:is_ngx_match_post(post_rules,params["request_header"]['X-forwarded-For']) then |
|
|
|
C:write_log('post','regular') |
|
|
|
C:write_log('post','regular') |
|
|
|
C:return_html(config['post']['status'],post_html) |
|
|
|
C:return_html(config['post']['status'],post_html) |
|
|
|
return true |
|
|
|
return true |
|
|
|