Scott Wallace
ba0f1a9811
Small cosmetic change.
2014-10-18 18:53:16 +01:00
Scott Wallace
d71a0abede
Detect if the Apache conn_rec
structure uses client_ip
and uses it accordingly.
...
Fallback is the original `conn_rec->remote_ip`.
2014-10-18 18:44:34 +01:00
Scott Wallace
d5bc945bc3
Ensure that the Apache logging is also v2.4 compatible
2014-10-18 12:22:22 +01:00
Scott Wallace
40e1de52e5
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 )
2014-10-18 11:30:15 +01:00
Scott Wallace
5b5aad08cb
Fix possible SEGVs by changing the nByte parameter of sqlite3_prepare_v2().
...
Segmentation Faults reported and observed under high traffic. For some reason this is a previously seen issue with the nBytes parameter of sqlite3_prepare_v2(). Not sure why, but it seems to fix the issue.
2012-12-19 15:27:41 +00:00
Scott Wallace
af891a04d3
Changed the SQLite3 error handling due to possible SegFault and invalid pointer messages in Apache.
2012-11-20 14:53:18 +00:00
Scott Wallace
5ce554fc48
Removed cookie checking -- deprecated.
...
Added better NULL input handling.
Altered the logging levels for blocklist matches and module initialisation.
2012-11-08 14:03:38 +00:00
Scott Wallace
8f6a30afba
Updated the Blockinator code to avoid using fcntl() on NFS. No file-locking is required when opening the file in read-only mode.
2012-08-29 10:50:08 +01:00
Scott Wallace
b6aa85cf7a
Initial code commit.
2012-05-21 19:08:04 +01:00