Rename conn_rec->remote_ip
to conn_rec->client_ip
Apache v2.4 has changed the conn_rec record structure (see, http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html)
This commit is contained in:
parent
d15d887a7f
commit
40e1de52e5
|
@ -61,7 +61,7 @@ static int mod_blockinator_method_handler(request_rec *r)
|
||||||
int sqlite3_rc;
|
int sqlite3_rc;
|
||||||
|
|
||||||
/* Capture the relevant information from the inbound request */
|
/* Capture the relevant information from the inbound request */
|
||||||
remote_ip = r->connection->remote_ip;
|
remote_ip = r->connection->client_ip;
|
||||||
forwarded_ip = apr_table_get(r->headers_in, "X-Forwarded-For");
|
forwarded_ip = apr_table_get(r->headers_in, "X-Forwarded-For");
|
||||||
useragent = apr_table_get(r->headers_in, "User-Agent");
|
useragent = apr_table_get(r->headers_in, "User-Agent");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue