]> git.kaiwu.me - nginx.git/commit
Fixed "proxy_pass" with IP address and no port (ticket #276).
authorRuslan Ermilov <ru@nginx.com>
Thu, 10 Jan 2013 12:58:55 +0000 (12:58 +0000)
committerRuslan Ermilov <ru@nginx.com>
Thu, 10 Jan 2013 12:58:55 +0000 (12:58 +0000)
commita2a229193abb45ad1ca4f6b3d2a7543b7e47976b
treeba7ee47761eb03b190121a9c4d69a7602560878e
parent2cbb7ae42a455437b55b77213e3351ee126b4fc9
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.
src/core/ngx_inet.c
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.h
src/http/ngx_http_upstream_round_robin.c