Loading APACHE_1_2_X/src/CHANGES +3 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,9 @@ Changes with Apache 1.2.1 *) PORT: Workaround for AIX 3.x compiler bug in http_bprintf.c. [Marc Slemko] PR#725 *) PORT: fix problem compiling http_bprintf.c with gcc under SCO [Marc Slemko] PR#695 Changes with Apache 1.2 Changes with Apache 1.2b11 Loading APACHE_1_2_X/src/Configure +3 −1 Original line number Diff line number Diff line Loading @@ -375,7 +375,9 @@ case "$PLAT" in OS='SCO 5' CFLAGS="$CFLAGS -DSCO5" LIBS="$LIBS -lsocket -lmalloc -lprot" if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then OSBPRINTF="-K noinline" fi DEF_WANTHSREGEX=no ;; *-solaris2*) Loading APACHE_1_2_X/src/include/http_core.h +1 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ #define REMOTE_HOST (0) #define REMOTE_NAME (1) #define REMOTE_NOLOOKUP (2) #define REMOTE_FORCE_HOST (3) #define SATISFY_ALL 0 #define SATISFY_ANY 1 Loading APACHE_1_2_X/src/main/http_core.c +4 −2 Original line number Diff line number Diff line Loading @@ -338,7 +338,9 @@ get_remote_host(conn_rec *conn, void *dir_config, int type) if (dir_config) dir_conf = (core_dir_config *)get_module_config(dir_config, &core_module); if ((!dir_conf) || (type != REMOTE_NOLOOKUP && conn->remote_host == NULL && dir_conf->hostname_lookups)) if ((!dir_conf) || (type == REMOTE_FORCE_HOST && conn->remote_host == NULL) || (type != REMOTE_NOLOOKUP && conn->remote_host == NULL && dir_conf->hostname_lookups)) { #ifdef STATUS int old_stat = update_child_status(conn->child_num, Loading Loading @@ -383,7 +385,7 @@ get_remote_host(conn_rec *conn, void *dir_config, int type) return conn->remote_host; else { if (type == REMOTE_HOST) return NULL; if (type == REMOTE_HOST || type == REMOTE_FORCE_HOST) return NULL; else return conn->remote_ip; } } Loading APACHE_1_2_X/src/modules/standard/mod_access.c +1 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,7 @@ int find_allowdeny (request_rec *r, array_header *a, int method) if (!gothost) { remotehost = get_remote_host(r->connection, r->per_dir_config, REMOTE_HOST); REMOTE_FORCE_HOST); if ((remotehost == NULL) || is_ip(remotehost)) gothost = 1; Loading Loading
APACHE_1_2_X/src/CHANGES +3 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,9 @@ Changes with Apache 1.2.1 *) PORT: Workaround for AIX 3.x compiler bug in http_bprintf.c. [Marc Slemko] PR#725 *) PORT: fix problem compiling http_bprintf.c with gcc under SCO [Marc Slemko] PR#695 Changes with Apache 1.2 Changes with Apache 1.2b11 Loading
APACHE_1_2_X/src/Configure +3 −1 Original line number Diff line number Diff line Loading @@ -375,7 +375,9 @@ case "$PLAT" in OS='SCO 5' CFLAGS="$CFLAGS -DSCO5" LIBS="$LIBS -lsocket -lmalloc -lprot" if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then OSBPRINTF="-K noinline" fi DEF_WANTHSREGEX=no ;; *-solaris2*) Loading
APACHE_1_2_X/src/include/http_core.h +1 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ #define REMOTE_HOST (0) #define REMOTE_NAME (1) #define REMOTE_NOLOOKUP (2) #define REMOTE_FORCE_HOST (3) #define SATISFY_ALL 0 #define SATISFY_ANY 1 Loading
APACHE_1_2_X/src/main/http_core.c +4 −2 Original line number Diff line number Diff line Loading @@ -338,7 +338,9 @@ get_remote_host(conn_rec *conn, void *dir_config, int type) if (dir_config) dir_conf = (core_dir_config *)get_module_config(dir_config, &core_module); if ((!dir_conf) || (type != REMOTE_NOLOOKUP && conn->remote_host == NULL && dir_conf->hostname_lookups)) if ((!dir_conf) || (type == REMOTE_FORCE_HOST && conn->remote_host == NULL) || (type != REMOTE_NOLOOKUP && conn->remote_host == NULL && dir_conf->hostname_lookups)) { #ifdef STATUS int old_stat = update_child_status(conn->child_num, Loading Loading @@ -383,7 +385,7 @@ get_remote_host(conn_rec *conn, void *dir_config, int type) return conn->remote_host; else { if (type == REMOTE_HOST) return NULL; if (type == REMOTE_HOST || type == REMOTE_FORCE_HOST) return NULL; else return conn->remote_ip; } } Loading
APACHE_1_2_X/src/modules/standard/mod_access.c +1 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,7 @@ int find_allowdeny (request_rec *r, array_header *a, int method) if (!gothost) { remotehost = get_remote_host(r->connection, r->per_dir_config, REMOTE_HOST); REMOTE_FORCE_HOST); if ((remotehost == NULL) || is_ip(remotehost)) gothost = 1; Loading