[prev in list] [next in list] [prev in thread] [next in thread]
List: squid-cvs
Subject: /bzr/squid3/trunk/ r13366: Fix outgoing peer type when using ORIGINAL_DST instead of DIRECT
From: Amos Jeffries <squid3 () treenet ! co ! nz>
Date: 2014-04-21 12:40:32
Message-ID: 20140421124503.15419.qmail () squid-cache ! org
[Download RAW message or body]
--===============2003539896==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------
revno: 13366
committer: Amos Jeffries <squid3@treenet.co.nz>
branch nick: trunk
timestamp: Mon 2014-04-21 06:40:32 -0600
message:
Fix outgoing peer type when using ORIGINAL_DST instead of DIRECT
modified:
src/peer_select.cc
--===============2003539896==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; name="r13366.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
=== modified file 'src/peer_select.cc'
--- a/src/peer_select.cc 2014-04-03 10:22:52 +0000
+++ b/src/peer_select.cc 2014-04-21 12:40:32 +0000
@@ -257,7 +257,7 @@
// construct a "result" adding the ORIGINAL_DST to the set instead of DIRECT
Comm::ConnectionPointer p = new Comm::Connection();
p->remote = req->clientConnectionManager->clientConnection->local;
- p->peerType = fs->code;
+ p->peerType = HIER_ORIGINAL_DST; // fs->code is DIRECT. This fixes the display.
p->setPeer(fs->_peer);
// check for a configured outgoing address for this destination...
--===============2003539896==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic