From: Amos Jeffries Date: Wed, 7 Apr 2010 12:43:15 +0000 (+1200) Subject: Author: Henrik Nordstrom X-Git-Tag: SQUID_3_1_2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8caf5ef3ee54090410966d0a39e6521afdd9cd0a;p=thirdparty%2Fsquid.git Author: Henrik Nordstrom Bug 2895: TPROXY2 compile error --- diff --git a/src/forward.cc b/src/forward.cc index 20ac39aa9f..48b4288fa5 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -914,7 +914,7 @@ FwdState::connectStart() if (!fs->_peer && request->flags.spoof_client_ip) { // try to set the outgoing address using TPROXY v2 // if it fails we abort any further TPROXY actions on this connection - if (IpInterceptor.SetTproxy2OutgoingAddr(int fd, const IpAddress &src) == -1) { + if (IpInterceptor.SetTproxy2OutgoingAddr(fd, src) == -1) { request->flags.spoof_client_ip = 0; } }