Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.h @ 5005:c9059bd5445b
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.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 10 Jan 2013 12:58:55 +0000 |
parents | 7bf3b68239a3 |
children | fd84344f1df7 |
comparison
equal
deleted
inserted
replaced
5004:764833756dcd | 5005:c9059bd5445b |
---|---|
114 ngx_str_t host; | 114 ngx_str_t host; |
115 u_char *file_name; | 115 u_char *file_name; |
116 ngx_uint_t line; | 116 ngx_uint_t line; |
117 in_port_t port; | 117 in_port_t port; |
118 in_port_t default_port; | 118 in_port_t default_port; |
119 ngx_uint_t no_port; /* unsigned no_port:1 */ | |
119 }; | 120 }; |
120 | 121 |
121 | 122 |
122 typedef struct { | 123 typedef struct { |
123 ngx_http_upstream_srv_conf_t *upstream; | 124 ngx_http_upstream_srv_conf_t *upstream; |