I am trying to have squid pass through the destination server IP address to my RESPMOD ICAP via the adaptation_meta directive.
My configuration line looks as follows:
adaptation_meta DST_IP "%<a" all
I can successfully use adaptation_meta to pass through some other logformat codes (if I change my configuration to have "%>a" I see the src IP) but it seems like I only get a "-" for what should be the destination IP.
I am using squid version 3.5.24
I was wondering if I was running into a known bug and if so if there was a patch I might apply to fix it.
> I am trying to have squid pass through the destination server IP address
> to my RESPMOD ICAP via the adaptation_meta directive.
> My configuration line looks as follows:
> adaptation_meta DST_IP "%<a" all
The bug fix started as master 7d1dac7 (a.k.a. r14505) and was fully
fixed in master 1ce66e2 (a.k.a. r14525):
AFAICT, the fix has not been backported to v3 but is available in v4+.
P.S. It is traditional to use "-" instead of "_" in HTTP and ICAP header
field names and prefix non-standard names with X. In your particular
case, there is an almost-standard ICAP header name that you may want to
use instead of DST_IP: X-Server-IP.
squid-users mailing list
[hidden email] http://lists.squid-cache.org/listinfo/squid-users