aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2019-03-15 15:45:56 +0300
committerRoman Arutyunyan <arut@nginx.com>2019-03-15 15:45:56 +0300
commit4e17b93eb6787e99a4023f20f8c391284f86bbf3 (patch)
treedf9c59da4e3e13dff0c7d48cec7bf0ca76d2e9cb /src/http/ngx_http_core_module.h
parent59c34b67952c2ebee6760ca3115ba19e65060b58 (diff)
downloadnginx-4e17b93eb6787e99a4023f20f8c391284f86bbf3.tar.gz
nginx-4e17b93eb6787e99a4023f20f8c391284f86bbf3.zip
Multiple addresses in "listen".
Previously only one address was used by the listen directive handler even if host name resolved to multiple addresses. Now a separate listening socket is created for each address.
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r--src/http/ngx_http_core_module.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h
index 4c6da7c0f..85f6d66dc 100644
--- a/src/http/ngx_http_core_module.h
+++ b/src/http/ngx_http_core_module.h
@@ -65,8 +65,9 @@ typedef struct ngx_http_core_loc_conf_s ngx_http_core_loc_conf_t;
typedef struct {
- ngx_sockaddr_t sockaddr;
+ struct sockaddr *sockaddr;
socklen_t socklen;
+ ngx_str_t addr_text;
unsigned set:1;
unsigned default_server:1;
@@ -100,8 +101,6 @@ typedef struct {
#if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER)
char *accept_filter;
#endif
-
- u_char addr[NGX_SOCKADDR_STRLEN + 1];
} ngx_http_listen_opt_t;