aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-06-03 15:42:58 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-06-03 15:42:58 +0000
commit1c10462e88491d52a23e22fbc3ca0012591df095 (patch)
tree5a71cf54dda493188473693e5b66a08fc8cdf161 /src/http/ngx_http_core_module.c
parent7578ec9df43bbb31db5291f1b76359d10900a679 (diff)
downloadnginx-1c10462e88491d52a23e22fbc3ca0012591df095.tar.gz
nginx-1c10462e88491d52a23e22fbc3ca0012591df095.zip
nginx-0.0.1-2003-06-03-19:42:58 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c4
1 files changed, 4 insertions, 0 deletions
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;
}