git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e151aa
)
Remote IP is available from the Apache context, there's no need for dns lookup.
author
Daniel Kouřil
<kouril@ics.muni.cz>
Tue, 15 May 2012 07:13:24 +0000
(07:13 +0000)
committer
Daniel Kouřil
<kouril@ics.muni.cz>
Tue, 15 May 2012 07:13:24 +0000
(07:13 +0000)
org.gridsite.core/src/mod_gridsite.c
patch
|
blob
|
blame
|
history
diff --git
a/org.gridsite.core/src/mod_gridsite.c
b/org.gridsite.core/src/mod_gridsite.c
index
5bf143b
..
bd7adfd
100644
(file)
--- 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);