]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Preserve TPROXY socket properties across a reset
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 3 Sep 2008 10:39:15 +0000 (22:39 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 3 Sep 2008 10:39:15 +0000 (22:39 +1200)
src/comm.cc

index bc5cb449182be46cce553241e365741bb52e859e..e74a6816941d4db4e1297390d656735b8f61fadf 100644 (file)
@@ -990,6 +990,11 @@ ConnectStateData::commResetFD()
      * the original socket
      */
 
+    /* MUST be done before binding or face OS Error: "(99) Cannot assign requested address"... */
+    if( F->flags.transparent ) {
+        comm_set_transparent(fd);
+    }
+
     AI = NULL;
     F->local_addr.GetAddrInfo(AI);