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:
Scott Wallace 2014-10-18 11:30:15 +01:00
parent d15d887a7f
commit 40e1de52e5

View file

@ -61,7 +61,7 @@ static int mod_blockinator_method_handler(request_rec *r)
int sqlite3_rc;
/* 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");
useragent = apr_table_get(r->headers_in, "User-Agent");