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.
This commit is contained in:
Matthias Pigulla 2015-08-15 16:08:49 +02:00
parent e972b8e7e8
commit f18496153b

View File

@ -123,7 +123,6 @@ static const char* get_filtered_ip(char* pszAddress, char* pszFilterMask, apr_po
} else { } else {
/* ok */ /* ok */
pIPSubNet->sub[0] &= 0x00FFFFFF; /* Zwangs-Filter: letztes Oktett maskieren */
pszFilteredIP = apr_pcalloc(pPool, sizeof("255.255.255.0")); pszFilteredIP = apr_pcalloc(pPool, sizeof("255.255.255.0"));
ipmask_inet_ntop4((char*)pIPSubNet->sub, pszFilteredIP); ipmask_inet_ntop4((char*)pIPSubNet->sub, pszFilteredIP);
} }