mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
nginx-0.0.11-2004-09-21-23:55:00 import
This commit is contained in:
parent
4624ae7d08
commit
f1602634ad
@ -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…
Reference in New Issue
Block a user