Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 100:7ebc8b7fb816
nginx-0.0.1-2003-06-03-19:42:58 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 03 Jun 2003 15:42:58 +0000 |
parents | a059e1aa65d4 |
children | 6dfda4cf5200 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Mon Jun 02 15:24:30 2003 +0000 +++ b/src/http/ngx_http_core_module.c Tue Jun 03 15:42:58 2003 +0000 @@ -798,8 +798,12 @@ 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; }