diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-09-01 07:54:01 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-09-01 07:54:01 +0300 |
commit | ff515f43124ed0b05a2a352d7ec1ed0b22253c92 (patch) | |
tree | aa73e59450592f6d57f2e2178a2ee35134e7099a /src/nxt_php_sapi.c | |
parent | 9941b0cd6557902613a41d3b85c03e4efca6eb8c (diff) | |
download | unit-ff515f43124ed0b05a2a352d7ec1ed0b22253c92.tar.gz unit-ff515f43124ed0b05a2a352d7ec1ed0b22253c92.tar.bz2 |
Added SERVER_ADDR parameter for Python and PHP modules.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_php_sapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c index 83d5e989..08b8ba01 100644 --- a/src/nxt_php_sapi.c +++ b/src/nxt_php_sapi.c @@ -320,6 +320,7 @@ nxt_php_read_request(nxt_task_t *task, nxt_app_rmsg_t *rmsg, NXT_READ(&h->version); NXT_READ(&ctx->r.remote); + NXT_READ(&ctx->r.local); NXT_READ(&h->host); NXT_READ(&h->cookie); @@ -718,6 +719,7 @@ nxt_php_register_variables(zval *track_vars_array TSRMLS_DC) NXT_PHP_SET("SERVER_PORT", server_port); NXT_PHP_SET("REMOTE_ADDR", ctx->r.remote); + NXT_PHP_SET("SERVER_ADDR", ctx->r.local); while (nxt_app_msg_read_str(task, ctx->rmsg, &n) == NXT_OK) { if (nxt_slow_path(n.length == 0)) { |