Browse Source

mod_accesslog: fix %p for ipv6 sockets (fixes #2228, thx jo.henke)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2734 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.27
Stefan Bühler 12 years ago
parent
commit
48f1cf79b4
  1. 1
      NEWS
  2. 2
      src/mod_accesslog.c

1
NEWS

@ -16,6 +16,7 @@ NEWS
* Fix stalls while reading from ssl sockets (fixes #2197)
* Fix etag formatting on boxes with 32-bit longs
* Fix two compiler warnings
* mod_accesslog: fix %p for ipv6 sockets (fixes #2228, thx jo.henke)
- 1.4.26 - 2010-02-07
* Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105)

2
src/mod_accesslog.c

@ -845,7 +845,7 @@ REQUESTDONE_FUNC(log_access_write) {
break;
case FORMAT_SERVER_PORT:
{
char *colon = strchr(((server_socket*)(con->srv_socket))->srv_token->ptr, ':');
char *colon = strrchr(((server_socket*)(con->srv_socket))->srv_token->ptr, ':');
if (colon) {
buffer_append_string(b, colon+1);
} else {

Loading…
Cancel
Save