An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html
Go to file
Ruslan Ermilov 3fae83a91c Upstream: added the ngx_http_upstream_resolved_t.name field.
This fixes inconsistency in what is stored in the "host" field.
Normally it would contain the "host" part of the parsed URL
(e.g., proxy_pass with variables), but for the case of an
implicit upstream specified with literal address it contained
the text representation of the socket address (that is, host
including port for IP).

Now the "host" field always contains the "host" part of the URL,
while the text representation of the socket address is stored
in the newly added "name" field.

The ngx_http_upstream_create_round_robin_peer() function was
modified accordingly in a way to be compatible with the code
that does not know about the new "name" field.

The "stream" code was similarly modified except for not adding
compatibility in ngx_stream_upstream_create_round_robin_peer().

This change is also a prerequisite for the next change.
2016-10-31 18:33:33 +03:00
auto Image filter: support for WebP. 2016-10-21 15:18:44 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: unicode2nginx compatibility with recent Perl versions. 2016-08-24 15:53:17 +03:00
docs nginx-1.11.5-RELEASE 2016-10-11 18:03:00 +03:00
misc Updated OpenSSL used for win32 builds. 2016-10-11 16:52:48 +03:00
src Upstream: added the ngx_http_upstream_resolved_t.name field. 2016-10-31 18:33:33 +03:00
.hgtags release-1.11.5 tag 2016-10-11 18:03:01 +03:00