<div dir="ltr"><div>Hello Everyone,<br><br></div>I didn't see relevant icap config options in squid.conf to carry X-Server-IP in ICAP header<br><div><br></div><div>So I tried to use adaptation_meta X-Server-IP: "%<a" in squid 3.5.8/squid 4.x<br></div><div><br>but not working, I only got the result like following:<br><br>X-Server-IP: -<br><br>Does squid's icap client support X-Server-IP in ICAP header ?<br><br></div><div>BTW.<br><br></div><div>I compiled failed in Debian 7.8 with squid version newer than <b>squid-4.0.0-20150828-r14267</b><br><br></div><div>the following is the compile error messages<br><br>depbase=`echo StoreSwapLogData.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\<br>        g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/usr/local/squid/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/usr/local/squid/etc\"   -I.. -I../include -I../lib -I../src -I../include    -I../src    -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -Wno-deprecated-register -pipe -D_REENTRANT -m64   -g -O2 -march=native -std=c++11 -MT StoreSwapLogData.o -MD -MP -MF $depbase.Tpo -c -o StoreSwapLogData.o StoreSwapLogData.cc &&\<br>        mv -f $depbase.Tpo $depbase.Po<br>StoreSwapLogData.cc: In member function ‘std::ostream& SwapChecksum24::print(std::ostream&) const’:<br>StoreSwapLogData.cc:47:23: error: no match for ‘operator<<’ in ‘os << ((const SwapChecksum24*)this)->SwapChecksum24::raw[0]’<br>StoreSwapLogData.cc:47:23: note: candidate is:<br>In file included from StoreSwapLogData.cc:12:0:<br>StoreSwapLogData.h:70:1: note: std::ostream& operator<<(std::ostream&, const SwapChecksum24&)<br>StoreSwapLogData.h:70:1: note:   no known conversion for argument 2 from ‘const uint8_t {aka const unsigned char}’ to ‘const SwapChecksum24&’<br>StoreSwapLogData.cc:48:1: error: control reaches end of non-void function [-Werror=return-type]<br>At global scope:<br>cc1plus: error: unrecognized command line option "-Wno-deprecated-register" [-Werror]<br><br><br>I have success compiled after add #include "typedefs.h" into src/StoreSwapLogData.h<br><br><br><br></div></div>