From: Amos Jeffries Date: Wed, 18 Nov 2009 04:06:43 +0000 (+1300) Subject: Partial Revert and replace revno10132 X-Git-Tag: SQUID_3_2_0_1~562 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=568320545f90f71b12de46a23b9c5a7deaa90423;p=thirdparty%2Fsquid.git Partial Revert and replace revno10132 --- diff --git a/src/forward.cc b/src/forward.cc index 4a65660ded..bc3a4e58c8 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -869,14 +869,14 @@ FwdState::connectStart() debugs(17, 3, "fwdConnectStart: got outgoing addr " << outgoing << ", tos " << tos); - int localFlags = COMM_NONBLOCKING; + int commFlags = COMM_NONBLOCKING; if (request->flags.spoof_client_ip) { if (!fs->_peer || !fs->_peer->options.no_tproxy) - localFlags |= COMM_TRANSPARENT; + commFlags |= COMM_TRANSPARENT; // else no tproxy today ... } - fd = comm_openex(SOCK_STREAM, IPPROTO_TCP, outgoing, localFlags, tos, url); + fd = comm_openex(SOCK_STREAM, IPPROTO_TCP, outgoing, commFlags, tos, url); debugs(17, 3, "fwdConnectStart: got TCP FD " << fd); @@ -912,11 +912,11 @@ FwdState::connectStart() commSetTimeout(fd, ctimeout, fwdConnectTimeoutWrapper, this); #if LINUX_TPROXY2 - if (!fs->_peer && request->localFlags.spoof_client_ip) { + 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) { - request->localFlags.spoof_client_ip = 0; + request->flags.spoof_client_ip = 0; } } #endif