]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
peer selection procedure for pinned connection should return the
authorChristos Tsantilas <christos@chtsanti.net>
Thu, 28 Nov 2019 10:00:45 +0000 (12:00 +0200)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 19 Mar 2020 23:30:10 +0000 (12:30 +1300)
CachePeer object if any.

This is required by caller to check if the pinned connection is still
valid.

src/peer_select.cc

index 3f8317367a80abbc939a6ee1be61552402e24420..3b203d10aac9d676e33093a4669ce93f19a33950 100644 (file)
@@ -278,6 +278,9 @@ peerSelectDnsPaths(ps_state *psstate)
         // Send an empty IP address marked as PINNED
         const Comm::ConnectionPointer p = new Comm::Connection();
         p->peerType = PINNED;
+        // Caller requires to check for pinned connections through
+        // CachePeer object:
+        p->setPeer(fs->_peer.get());
         psstate->paths->push_back(p);
         psstate->servers = fs->next;
         delete fs;