]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix outgoing peer type when using ORIGINAL_DST instead of DIRECT
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 21 Apr 2014 12:40:32 +0000 (06:40 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 21 Apr 2014 12:40:32 +0000 (06:40 -0600)
src/peer_select.cc

index af3c3e78b446c1efe3f8ae5f3e9e625460d194b5..a17a4429b1c18b0dc50b3514a257233d10ae3281 100644 (file)
@@ -257,7 +257,7 @@ peerSelectDnsPaths(ps_state *psstate)
             // 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...