From 1c10462e88491d52a23e22fbc3ca0012591df095 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 3 Jun 2003 15:42:58 +0000 Subject: nginx-0.0.1-2003-06-03-19:42:58 import --- src/http/ngx_http_core_module.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/ngx_http_core_module.c') diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index b390c9438..08a9980ea 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -798,8 +798,12 @@ static char *ngx_http_core_merge_srv_conf(ngx_pool_t *pool, if (conf->listen.nelts == 0) { ngx_test_null(l, ngx_push_array(&conf->listen), NGX_CONF_ERROR); l->addr = INADDR_ANY; +#if (WIN32) + l->port = 80; +#else /* STUB: getuid() should be cached */ l->port = (getuid() == 0) ? 80 : 8000; +#endif l->family = AF_INET; } -- cgit