Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
2.4
:
Modules
>
apache2-mod_geoip
> apache24.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File apache24.patch of Package apache2-mod_geoip
--- mod_geoip2_1.2.7/mod_geoip.c.orig 2013-07-28 11:16:59.809025424 +0200 +++ mod_geoip2_1.2.7/mod_geoip.c 2013-07-28 11:17:39.021026627 +0200 @@ -322,7 +322,7 @@ return DECLINED; if (!cfg->scanProxyHeaders) { - ipaddr = r->connection->remote_ip; + ipaddr = r->connection->client_ip; } else { ap_add_common_vars(r); @@ -340,7 +340,7 @@ } if (!ipaddr_ptr) { ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server, "[mod_geoip]: Error while getting ipaddr from proxy headers. Using REMOTE_ADDR."); - ipaddr = r->connection->remote_ip; + ipaddr = r->connection->client_ip; } else { ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server, "[mod_geoip]: IPADDR_PTR: %s", ipaddr_ptr);