]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Partial Revert and replace revno10132
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 18 Nov 2009 04:06:43 +0000 (17:06 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 18 Nov 2009 04:06:43 +0000 (17:06 +1300)
src/forward.cc

index 4a65660ded34af936c5607e19114e257857a3365..bc3a4e58c8130b989c52a8e231ea127d8ea3ecbd 100644 (file)
@@ -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