]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2168 fix: Avoid tcp_outgoing_address selection for ICAP requests.
authorrousskov <>
Wed, 23 Jan 2008 03:54:28 +0000 (03:54 +0000)
committerrousskov <>
Wed, 23 Jan 2008 03:54:28 +0000 (03:54 +0000)
Let OS pick the outgoing (i.e., source) address instead.

Code did not supply info required for tcp_outgoing_address ACL match to work,
and tcp_outgoing_address is usually not applicable to ICAP communication.
Eventually, we may add icap_outgoing_address.

src/ICAP/ICAPXaction.cc

index 7c4a16a3e387b6c81aeff2c029d8f9c133fea7f9..a620b0211c69948ba694859131c4e594def9ecc3 100644 (file)
@@ -125,7 +125,8 @@ void ICAPXaction::openConnection()
 
     disableRetries(); // we only retry pconn failures
 
-    IPAddress outgoing(getOutgoingAddr(NULL));
+    IPAddress outgoing;
+    outgoing.SetAnyAddr();
     connection = comm_open(SOCK_STREAM, 0, outgoing, 
         COMM_NONBLOCKING, s.uri.buf());