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 01fef37c58
commit dd6b5576f9
1 changed files with 2 additions and 0 deletions

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);