Remote IP is available from the Apache context, there's no need for dns lookup.
authorDaniel Kouřil <kouril@ics.muni.cz>
Tue, 15 May 2012 07:13:24 +0000 (07:13 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Tue, 15 May 2012 07:13:24 +0000 (07:13 +0000)
org.gridsite.core/src/mod_gridsite.c

index 5bf143b..bd7adfd 100644 (file)
@@ -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);