]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Experiment re-setting the IP_TRANSPARENT flag after accept()
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Mar 2008 11:38:28 +0000 (23:38 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Mar 2008 11:38:28 +0000 (23:38 +1200)
src/comm.cc

index 3d7bf1af151eb5ded7cbed10e9f1e4268a1f6718..a7e7ff1db570b22c31960e91977acba9cb222ef6 100644 (file)
@@ -1319,6 +1319,12 @@ comm_old_accept(int fd, ConnectionDetail &details)
 
     commSetNonBlocking(sock);
 
+#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);
+#endif
+
     PROF_stop(comm_accept);
     return sock;
 }