mirror of
https://github.com/nginx/nginx.git
synced 2026-10-09 02:02:22 +00:00
nginx-0.0.11-2004-09-21-23:55:00 import
This commit is contained in:
parent
4624ae7d08
commit
f1602634ad
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue