mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 00:43:38 +00:00
Propagate FastCGI variable REMOTE_ADDR.
This commit is contained in:
parent
70ee3289f8
commit
f82c7a5cdb
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *fcgi_id)
|
|||
q_vars = xs_url_vars(xs_list_get(pnv, 1));
|
||||
}
|
||||
else
|
||||
if (xs_match(k, "CONTENT_TYPE|CONTENT_LENGTH|HTTP_*")) {
|
||||
if (xs_match(k, "CONTENT_TYPE|CONTENT_LENGTH|REMOTE_ADDR|HTTP_*")) {
|
||||
if (xs_startswith(k, "HTTP_"))
|
||||
k = xs_crop_i(k, 5, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue