From 07266c4c6801a8b8703207535107f2180d6b4989 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 22 Apr 2014 22:15:49 -0700 Subject: [PATCH] Fix outgoing peer type when using ORIGINAL_DST instead of DIRECT --- src/peer_select.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer_select.cc b/src/peer_select.cc index 0eb1687520..19e337105a 100644 --- a/src/peer_select.cc +++ b/src/peer_select.cc @@ -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... -- 2.47.2