Bug #2228
%p in accesslog.format does not correctly split the port off ipv6 sockets
| Status: | Fixed | Start date: | 2010-06-24 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% | |
| Category: | mod_accesslog | |||
| Target version: | 1.4.27 | |||
| Missing in 1.5.x: | No |
Description
Hello,
I'm using "%p" in my 'accesslog.format' string to see, how many people actually use SSL. Since I bound lighttpd to a specific IPv6 address (via 'server.bind'), I find strings like the following in the %p column of my log:
cdef:6789::1:80
So it seems like the socket address is split at the first colon instead of the last one. A quick workaround would probably be to replace 'strchr' with 'strrchr' here:
Regards,
Jo.
Associated revisions
mod_accesslog: fix %p for ipv6 sockets (fixes #2228, thx jo.henke)
History
#1 Updated by stbuehler almost 3 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset r2734.
Also available in: Atom