changeset 610:f71947553000

If "debug_connection" directive's parameter is specified using a hostname, all resolved IPv4 addresses are now used, not only the first one.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 30 Jul 2012 13:13:32 +0000
parents 39a51e664374
children 2501c3db40a1
files xml/en/docs/ngx_core_module.xml xml/ru/docs/ngx_core_module.xml
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/ngx_core_module.xml	Thu Jul 26 21:23:57 2012 +0000
+++ b/xml/en/docs/ngx_core_module.xml	Mon Jul 30 13:13:32 2012 +0000
@@ -98,8 +98,11 @@
 <link id="error_log"/> directive.
 Debugged connections are specified by IPv4 or IPv6 (1.3.0, 1.2.1)
 address or network.
-A connection may also be specified using a hostname, in which case the
-first IPv4 address corresponding to a name is used.
+A connection may also be specified using a hostname, in which case
+all IPv4 addresses corresponding to a name are used.
+<note>
+Prior to version 1.3.4 only the first IPv4 address was used in this case.
+</note>
 For connections using UNIX-domain sockets (1.3.0, 1.2.1),
 debugging log is enabled by the “<literal>unix:</literal>” parameter.
 <example>
--- a/xml/ru/docs/ngx_core_module.xml	Thu Jul 26 21:23:57 2012 +0000
+++ b/xml/ru/docs/ngx_core_module.xml	Mon Jul 30 13:13:32 2012 +0000
@@ -99,7 +99,10 @@
 Отлаживаемые соединения задаются IPv4 или IPv6 (1.3.0, 1.2.1)
 адресом или сетью.
 Соединение может быть также задано при помощи имени хоста, в этом случае
-используется первый IPv4-адрес, соответствующий имени.
+используются все IPv4-адреса, соответствующие имени.
+<note>
+До версии 1.3.4 в этом случае использовался только первый IPv4-адрес.
+</note>
 Отладочный лог для соединений через UNIX-сокеты (1.3.0, 1.2.1)
 включается параметром “<literal>unix:</literal>”.
 <example>