Hello Everyone, I didn't see relevant icap config options in squid.conf to carry X-Server-IP in ICAP header
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: - Does squid's icap client support X-Server-IP in ICAP header ? BTW. I compiled failed in Debian 7.8 with squid version newer than *squid-4.0.0-20150828-r14267* the following is the compile error messages depbase=`echo StoreSwapLogData.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ 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 &&\ mv -f $depbase.Tpo $depbase.Po StoreSwapLogData.cc: In member function ‘std::ostream& SwapChecksum24::print(std::ostream&) const’: StoreSwapLogData.cc:47:23: error: no match for ‘operator<<’ in ‘os << ((const SwapChecksum24*)this)->SwapChecksum24::raw[0]’ StoreSwapLogData.cc:47:23: note: candidate is: In file included from StoreSwapLogData.cc:12:0: StoreSwapLogData.h:70:1: note: std::ostream& operator<<(std::ostream&, const SwapChecksum24&) StoreSwapLogData.h:70:1: note: no known conversion for argument 2 from ‘const uint8_t {aka const unsigned char}’ to ‘const SwapChecksum24&’ StoreSwapLogData.cc:48:1: error: control reaches end of non-void function [-Werror=return-type] At global scope: cc1plus: error: unrecognized command line option "-Wno-deprecated-register" [-Werror] I have success compiled after add #include "typedefs.h" into src/StoreSwapLogData.h
_______________________________________________ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users