From f18496153b01ab53c74f17a7e1e9479ffd54bdc5 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Sat, 15 Aug 2015 16:08:49 +0200 Subject: [PATCH] Remove forced mask for the last byte That way, you can use %{32}a or %{32}h in log format directives to get *full* IP addresses if you need to do so. The default still is to mask the last byte. That is, installing this module and keeping %a or %h placeholders in log format definitions unchanged will automatically switch to logging masked IP addresses. --- mod_log_ipmask.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mod_log_ipmask.c b/mod_log_ipmask.c index 3fdb8cb..63b31a5 100755 --- a/mod_log_ipmask.c +++ b/mod_log_ipmask.c @@ -123,7 +123,6 @@ static const char* get_filtered_ip(char* pszAddress, char* pszFilterMask, apr_po } else { /* ok */ - pIPSubNet->sub[0] &= 0x00FFFFFF; /* Zwangs-Filter: letztes Oktett maskieren */ pszFilteredIP = apr_pcalloc(pPool, sizeof("255.255.255.0")); ipmask_inet_ntop4((char*)pIPSubNet->sub, pszFilteredIP); }