]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Oops. Should have been set transparent on the child socket.
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Mar 2008 11:39:47 +0000 (23:39 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Mar 2008 11:39:47 +0000 (23:39 +1200)
src/comm.cc

index a7e7ff1db570b22c31960e91977acba9cb222ef6..e839425420a30b1cff3d7ce921f71963ac9e5f34 100644 (file)
@@ -1321,8 +1321,10 @@ comm_old_accept(int fd, ConnectionDetail &details)
 
 #if LINUX_TPROXY4
     /* AYJ: do we need to set this again on every accept? */
-    if(fd_table[fd].flags.tproxy == 1)
-        comm_set_transparent(fd, 0);
+    if(fd_table[fd].flags.tproxy == 1) {
+        comm_set_transparent(sock, 0);
+        F->flags.tproxy = 1;
+    }
 #endif
 
     PROF_stop(comm_accept);