Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 425:bd39260a1383
nginx-0.0.10-2004-09-14-19:55:24 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 14 Sep 2004 15:55:24 +0000 |
parents | 0526206251f6 |
children | 3f88935a02e8 |
comparison
equal
deleted
inserted
replaced
424:84c527908237 | 425:bd39260a1383 |
---|---|
1477 ngx_uint_t p; | 1477 ngx_uint_t p; |
1478 struct hostent *h; | 1478 struct hostent *h; |
1479 ngx_str_t *args; | 1479 ngx_str_t *args; |
1480 ngx_http_listen_t *ls; | 1480 ngx_http_listen_t *ls; |
1481 | 1481 |
1482 /* TODO: check duplicate 'listen' directives, | 1482 /* |
1483 add resolved name to server names ??? */ | 1483 * TODO: check duplicate 'listen' directives, |
1484 | 1484 * add resolved name to server names ??? |
1485 ngx_test_null(ls, ngx_push_array(&scf->listen), NGX_CONF_ERROR); | 1485 */ |
1486 | |
1487 if (!(ls = ngx_array_push(&scf->listen))) { | |
1488 return NGX_CONF_ERROR; | |
1489 } | |
1486 | 1490 |
1487 /* AF_INET only */ | 1491 /* AF_INET only */ |
1488 | 1492 |
1489 ls->family = AF_INET; | 1493 ls->family = AF_INET; |
1490 ls->default_server = 0; | 1494 ls->default_server = 0; |