From 72d57dea1748b3e20ceaa4e3fb91b40265637aa9 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 29 Mar 2008 23:38:28 +1200 Subject: [PATCH] Experiment re-setting the IP_TRANSPARENT flag after accept() --- src/comm.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/comm.cc b/src/comm.cc index 3d7bf1af15..a7e7ff1db5 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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; } -- 2.47.2