mod_extforward: log address of untrusted proxy with debug.log-request-handling

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2858 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.32
Stefan Bühler 11 years ago
parent 4f4bcdd3c3
commit 29b126d5d3

@ -13,6 +13,7 @@ NEWS
* network_server_init: fix double free and memleak on error (fixes #2440, thx kyprizel)
* detect "x-gzip"/"x-bzip2" as separate encodings, more strict encoding matching (fixes #2443)
* tests: make sure mod_proxy doesn't leave running processes (fixes #2435, thx kibi)
* mod_extforward: log address of untrusted proxy with debug.log-request-handling
- 1.4.31 - 2012-05-31
* [ssl] fix segfault in counting renegotiations for openssl versions without TLSEXT/SNI (thx carpii for reporting)

@ -398,8 +398,8 @@ URIHANDLER_FUNC(mod_extforward_uri_handler) {
/* if the remote ip itself is not trusted, then do nothing */
if (IP_UNTRUSTED == is_proxy_trusted(dst_addr_str, p)) {
if (con->conf.log_request_handling) {
log_error_write(srv, __FILE__, __LINE__, "s",
"remote address is NOT a trusted proxy, skipping");
log_error_write(srv, __FILE__, __LINE__, "sss",
"remote address", dst_addr_str, "is NOT a trusted proxy, skipping");
}
return HANDLER_GO_ON;

Loading…
Cancel
Save