From 40e1de52e5a901d0ddf471821c5cdaf17f42a315 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sat, 18 Oct 2014 11:30:15 +0100 Subject: [PATCH] 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) --- apache/mod_blockinator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache/mod_blockinator.c b/apache/mod_blockinator.c index 1aba422..bd61e69 100644 --- a/apache/mod_blockinator.c +++ b/apache/mod_blockinator.c @@ -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");