]> 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>
Wed, 23 Apr 2014 05:15:49 +0000 (22:15 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 23 Apr 2014 05:15:49 +0000 (22:15 -0700)
src/peer_select.cc

index 0eb16875209d61084bda714abd977fdc2eaac76c..19e337105a6171af3eaca6253c4767217bba20a0 100644 (file)
@@ -242,7 +242,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 = ORIGINAL_DST; // fs->code is DIRECT. This fixes the display.
             p->setPeer(fs->_peer);
 
             // check for a configured outgoing address for this destination...