diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-02 13:33:56 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-02 13:33:56 -0700 |
commit | 4f8253dcdb9e6ff2ae18639556811d13729fae2b (patch) | |
tree | 7f60e7d5621522f65f97053138354fec7efc0686 /node/IncomingPacket.cpp | |
parent | 4931e449989f74b9518d15bc69521fdbefb313e7 (diff) | |
download | infinitytier-4f8253dcdb9e6ff2ae18639556811d13729fae2b.tar.gz infinitytier-4f8253dcdb9e6ff2ae18639556811d13729fae2b.zip |
Tweaks to path handling...
Diffstat (limited to 'node/IncomingPacket.cpp')
-rw-r--r-- | node/IncomingPacket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index fafd5679..7ba34566 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -1163,8 +1163,8 @@ bool IncomingPacket::_doCIRCUIT_TEST(const RuntimeEnvironment *RR,const SharedPt remainingHopsPtr += ZT_ADDRESS_LENGTH; SharedPtr<Peer> nhp(RR->topology->getPeer(nextHop[h])); if (nhp) { - SharedPtr<Path> nhbp(nhp->getBestPath(now,false)); - if (nhbp) + SharedPtr<Path> nhbp(nhp->getBestPath(now)); + if ((nhbp)&&(nhbp->alive(now))) nextHopBestPathAddress[h] = nhbp->address(); } } |