comparison src/http/ngx_http_core_module.c @ 434:8998b09f89e9

nginx-0.0.11-2004-09-21-23:55:00 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 21 Sep 2004 19:55:00 +0000
parents 694cd6cdb714
children 5cdc4838d4e8
comparison
equal deleted inserted replaced
433:9a97dcdd2421 434:8998b09f89e9
1541 ls->addr = INADDR_ANY; 1541 ls->addr = INADDR_ANY;
1542 ls->port = (in_port_t) port; 1542 ls->port = (in_port_t) port;
1543 return NGX_CONF_OK; 1543 return NGX_CONF_OK;
1544 } 1544 }
1545 1545
1546 ls->port = port;
1547
1546 ls->addr = inet_addr((const char *) addr); 1548 ls->addr = inet_addr((const char *) addr);
1547 if (ls->addr == INADDR_NONE) { 1549 if (ls->addr == INADDR_NONE) {
1548 h = gethostbyname((const char *) addr); 1550 h = gethostbyname((const char *) addr);
1549 1551
1550 if (h == NULL || h->h_addr_list[0] == NULL) { 1552 if (h == NULL || h->h_addr_list[0] == NULL) {