<div dir="ltr"><div>Thx for reply, Alex</div><div><br></div><div>%ts works both in REQMOD and RESPMOD, %>a is OK too.</div><div><br></div><div>So it seems that %<a has a bug forĀ or lack of support,</div><div><br></div><div>is there another way to carry ORIGINAL_DST in access.log into ICAP header using X-Server-IP?</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-08 13:26 GMT+08:00 Alex Rousskov <span dir="ltr"><<a href="mailto:rousskov@measurement-factory.com" target="_blank">rousskov@measurement-factory.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span>On 09/07/2015 10:08 PM, Hsuan Yu wrote:<br>
<br>
> I didn't see relevant icap config options in squid.conf to carry<br>
> X-Server-IP in ICAP header<br>
<br>
</span>Squid currently has built-in support for X-Client-IP, not X-Server-IP.<br>
<span><br>
<br>
> So I tried to use adaptation_meta X-Server-IP: "%<a" in squid<br>
> 3.5.8/squid 4.x<br>
><br>
> but not working, I only got the result like following:<br>
><br>
> X-Server-IP: -<br>
<br>
<br>
</span>In REQMOD, this is expected because %<a is the IP address of the last<br>
server or peer connection (and there may be no origin server or peer<br>
connection at REQMOD time).<br>
<br>
In RESPMOD, this may indicate a bug or lack of support for that %code.<br>
If you are using RESPMOD, do other, simpler %codes like %ts work in your<br>
adaptation_meta configuration? Please quote your exact adaptation_meta<br>
configuration line, just in case.<br>
<br>
<br>
HTH,<br>
<br>
Alex.<br>
<br>
</blockquote></div><br></div></div>