Browse Source

make port 80 the default

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@368 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.3.14
Jan Kneschke 17 years ago
parent
commit
c65f4e0223
  1. 13
      src/mod_proxy.c

13
src/mod_proxy.c

@ -293,6 +293,8 @@ SETDEFAULTS_FUNC(mod_proxy_set_defaults) {
df = data_proxy_init();
df->port = 80;
buffer_copy_string_buffer(df->key, da_host->key);
pcv[0].destination = df->host;
@ -311,17 +313,8 @@ SETDEFAULTS_FUNC(mod_proxy_set_defaults) {
"host");
return HANDLER_ERROR;
} else if (df->port == 0) {
log_error_write(srv, __FILE__, __LINE__, "sbbbs",
"missing key (short):",
da->key,
da_ext->key,
da_host->key,
"port");
return HANDLER_ERROR;
}
/* if extension already exists, take it */
if (NULL == (dfa = (data_array *)array_get_element(s->extensions, da_ext->key->ptr))) {

Loading…
Cancel
Save