On 09/08/2015 12:31 AM, Hsuan Yu wrote: > %ts works both in REQMOD and RESPMOD, %>a is OK too. Great. > So it seems that %<a has a bug for or lack of support, If you are talking about RESPMOD, then yes. > is there another way to carry ORIGINAL_DST in access.log into ICAP > header using X-Server-IP? I do not know the answer to your question, but if you are intercepting HTTP, then you can try %>la and other %codes tied to the HTTP client connection. In fact, you can try _all_ %codes at once to see if any of them works. Alex. > 2015-09-08 13:26 GMT+08:00 Alex Rousskov > <rousskov@xxxxxxxxxxxxxxxxxxxxxxx > <mailto:rousskov@xxxxxxxxxxxxxxxxxxxxxxx>>: > > On 09/07/2015 10:08 PM, Hsuan Yu wrote: > > > I didn't see relevant icap config options in squid.conf to carry > > X-Server-IP in ICAP header > > Squid currently has built-in support for X-Client-IP, not X-Server-IP. > > > > So I tried to use adaptation_meta X-Server-IP: "%<a" in squid > > 3.5.8/squid 4.x > > > > but not working, I only got the result like following: > > > > X-Server-IP: - > > > In REQMOD, this is expected because %<a is the IP address of the last > server or peer connection (and there may be no origin server or peer > connection at REQMOD time). > > In RESPMOD, this may indicate a bug or lack of support for that %code. > If you are using RESPMOD, do other, simpler %codes like %ts work in your > adaptation_meta configuration? Please quote your exact adaptation_meta > configuration line, just in case. > > > HTH, > > Alex. > > > > > _______________________________________________ > squid-users mailing list > squid-users@xxxxxxxxxxxxxxxxxxxxx > http://lists.squid-cache.org/listinfo/squid-users > _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users