From: Daniel KouĊ™il Date: Tue, 15 May 2012 07:13:24 +0000 (+0000) Subject: Remote IP is available from the Apache context, there's no need for dns lookup. X-Git-Tag: merge_torque_to_head_after~8 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=167a4d96dfa8efa306bdda7e4dd9dc60f8be7064;p=jra1mw.git Remote IP is available from the Apache context, there's no need for dns lookup. --- diff --git a/org.gridsite.core/src/mod_gridsite.c b/org.gridsite.core/src/mod_gridsite.c index 5bf143b..bd7adfd 100644 --- a/org.gridsite.core/src/mod_gridsite.c +++ b/org.gridsite.core/src/mod_gridsite.c @@ -3050,9 +3050,7 @@ static int mod_gridsite_perm_handler(request_rec *r) /* finally add IP credential */ - remotehost = (char *) ap_get_remote_host(r->connection, - r->per_dir_config, REMOTE_DOUBLE_REV, NULL); - if ((remotehost != NULL) && (*remotehost != '\0')) + if (r->connection->remote_ip) { cred = GRSTgaclCredCreate("ip:", r->connection->remote_ip); GRSTgaclCredSetNotAfter(cred, GRST_MAX_TIME_T);