aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-01-29 17:02:48 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-01-29 17:02:48 +0000
commit1b8b119932d10d9030aa6dccd3719e5a84de33b5 (patch)
treee1723d3cddd13834370beca4cb9e571926dc8169 /src/http/ngx_http.c
parentfe5cb6b9e9195718578938d7cd236fe538dbb331 (diff)
downloadnginx-1b8b119932d10d9030aa6dccd3719e5a84de33b5.tar.gz
nginx-1b8b119932d10d9030aa6dccd3719e5a84de33b5.zip
nginx-0.0.1-2003-01-29-20:02:48 import
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r--src/http/ngx_http.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index ec1014197..56e2b5b72 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -348,6 +348,7 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, char *dummy)
ls->ctx = ctx;
ls->servers = &in_port[p];
+#if 0
if (in_port[p].addr.nelts == 1) {
in_addr = (ngx_http_in_addr_t *) in_port[p].addr.elts;
@@ -359,10 +360,24 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, char *dummy)
ls->servers = NULL;
}
}
+#endif
ngx_log_debug(cf->log, "ls ctx: %d:%08x" _ in_port[p].port _ ls->ctx);
}
}
+ /* DEBUG STUFF */
+ in_port = (ngx_http_in_port_t *) in_ports.elts;
+ for (p = 0; p < in_ports.nelts; p++) {
+ngx_log_debug(cf->log, "port: %d" _ in_port[p].port);
+ in_addr = (ngx_http_in_addr_t *) in_port[p].addr.elts;
+ for (a = 0; a < in_port[p].addr.nelts; a++) {
+ char ip[20];
+ ngx_inet_ntop(AF_INET, &in_addr[a].addr, ip, 20);
+ngx_log_debug(cf->log, "%s %08x" _ ip _ in_addr[a].core_srv_conf);
+ }
+ }
+ /**/
+
return NGX_CONF_OK;
}