nginx-0.0.11-2004-09-21-23:55:00 import

This commit is contained in:
Igor Sysoev 2004-09-21 19:55:00 +00:00
parent 4624ae7d08
commit f1602634ad

View File

@ -1543,6 +1543,8 @@ static char *ngx_set_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_OK;
}
ls->port = port;
ls->addr = inet_addr((const char *) addr);
if (ls->addr == INADDR_NONE) {
h = gethostbyname((const char *) addr);