diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2013-01-10 12:58:55 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2013-01-10 12:58:55 +0000 |
| commit | a2a229193abb45ad1ca4f6b3d2a7543b7e47976b (patch) | |
| tree | ba7ee47761eb03b190121a9c4d69a7602560878e /src/http/ngx_http_upstream.h | |
| parent | 2cbb7ae42a455437b55b77213e3351ee126b4fc9 (diff) | |
| download | nginx-a2a229193abb45ad1ca4f6b3d2a7543b7e47976b.tar.gz nginx-a2a229193abb45ad1ca4f6b3d2a7543b7e47976b.tar.bz2 | |
Fixed "proxy_pass" with IP address and no port (ticket #276).
Upstreams created by "proxy_pass" with IP address and no port were
broken in 1.3.10, by not initializing port in u->sockaddr.
API change: ngx_parse_url() was modified to always initialize port
(in u->sockaddr and in u->port), even for the u->no_resolve case;
ngx_http_upstream() and ngx_http_upstream_add() were adopted.
Diffstat (limited to 'src/http/ngx_http_upstream.h')
| -rw-r--r-- | src/http/ngx_http_upstream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h index f32c98522..0d2b738a9 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -116,6 +116,7 @@ struct ngx_http_upstream_srv_conf_s { ngx_uint_t line; in_port_t port; in_port_t default_port; + ngx_uint_t no_port; /* unsigned no_port:1 */ }; |
