From: Amos Jeffries Date: Wed, 3 Sep 2008 10:39:15 +0000 (+1200) Subject: Preserve TPROXY socket properties across a reset X-Git-Tag: SQUID_3_1_0_1~49^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e17b492958f2c98d78375427361e90ef76ad8fc7;p=thirdparty%2Fsquid.git Preserve TPROXY socket properties across a reset --- diff --git a/src/comm.cc b/src/comm.cc index bc5cb44918..e74a681694 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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);