Commit 857d37f1 authored by Marc Slemko's avatar Marc Slemko
Browse files

Back out accidental inclusion of REMOTE_FORCE_HOST change.

Reviewed by:
Submitted by:
Obtained from:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78532 13f79535-47bb-0310-9956-ffa450edef68
parent 8fe17b9b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@
#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
+2 −4
Original line number Diff line number Diff line
@@ -338,9 +338,7 @@ 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_FORCE_HOST && conn->remote_host == NULL)
	|| (type != REMOTE_NOLOOKUP
	    && conn->remote_host == NULL && dir_conf->hostname_lookups))
   if ((!dir_conf) || (type != REMOTE_NOLOOKUP && conn->remote_host == NULL && dir_conf->hostname_lookups))
    {
#ifdef STATUS
	int old_stat = update_child_status(conn->child_num,
@@ -385,7 +383,7 @@ get_remote_host(conn_rec *conn, void *dir_config, int type)
	return conn->remote_host;
    else
    {
	if (type == REMOTE_HOST || type == REMOTE_FORCE_HOST) return NULL;
	if (type == REMOTE_HOST) return NULL;
	else return conn->remote_ip;
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -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_FORCE_HOST);
	                                 REMOTE_HOST);

	    if ((remotehost == NULL) || is_ip(remotehost))
	        gothost = 1;