Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
99:a059e1aa65d4 | 100:7ebc8b7fb816 |
---|---|
796 /* TODO: it does not merge, it inits only */ | 796 /* TODO: it does not merge, it inits only */ |
797 | 797 |
798 if (conf->listen.nelts == 0) { | 798 if (conf->listen.nelts == 0) { |
799 ngx_test_null(l, ngx_push_array(&conf->listen), NGX_CONF_ERROR); | 799 ngx_test_null(l, ngx_push_array(&conf->listen), NGX_CONF_ERROR); |
800 l->addr = INADDR_ANY; | 800 l->addr = INADDR_ANY; |
801 #if (WIN32) | |
802 l->port = 80; | |
803 #else | |
801 /* STUB: getuid() should be cached */ | 804 /* STUB: getuid() should be cached */ |
802 l->port = (getuid() == 0) ? 80 : 8000; | 805 l->port = (getuid() == 0) ? 80 : 8000; |
806 #endif | |
803 l->family = AF_INET; | 807 l->family = AF_INET; |
804 } | 808 } |
805 | 809 |
806 if (conf->server_names.nelts == 0) { | 810 if (conf->server_names.nelts == 0) { |
807 ngx_test_null(n, ngx_push_array(&conf->server_names), NGX_CONF_ERROR); | 811 ngx_test_null(n, ngx_push_array(&conf->server_names), NGX_CONF_ERROR); |