diff options
author | Vladimir Homutov <vl@nginx.com> | 2016-09-02 18:27:05 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2016-09-02 18:27:05 +0300 |
commit | c6d456da87fab9fc953f4f0d8506ac83415e774c (patch) | |
tree | cbd9d030a98665e799502539bde8a9478858eb0a /src/stream/ngx_stream_upstream.h | |
parent | be6024f9b72b6d012d52f1ae1c7605a6c4c165da (diff) | |
download | nginx-c6d456da87fab9fc953f4f0d8506ac83415e774c.tar.gz nginx-c6d456da87fab9fc953f4f0d8506ac83415e774c.zip |
Stream: the $upstream_addr variable.
Keeps the full address of the upstream server. If several servers were
contacted during proxying, their addresses are separated by commas,
e.g. "192.168.1.1:80, 192.168.1.2:80".
Diffstat (limited to 'src/stream/ngx_stream_upstream.h')
-rw-r--r-- | src/stream/ngx_stream_upstream.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h index 5f067c021..22ffcb614 100644 --- a/src/stream/ngx_stream_upstream.h +++ b/src/stream/ngx_stream_upstream.h @@ -79,6 +79,11 @@ struct ngx_stream_upstream_srv_conf_s { typedef struct { + ngx_str_t *peer; +} ngx_stream_upstream_state_t; + + +typedef struct { ngx_str_t host; in_port_t port; ngx_uint_t no_port; /* unsigned no_port:1 */ @@ -104,6 +109,7 @@ typedef struct { ngx_str_t ssl_name; #endif ngx_stream_upstream_resolved_t *resolved; + ngx_stream_upstream_state_t *state; unsigned connected:1; unsigned proxy_protocol:1; } ngx_stream_upstream_t; |