From 0b354803f3ea0eecd046a37c51d4d2d78934b502 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 13 Jul 2015 10:03:04 -0700 Subject: Clean up some YAGNI issues with implementation of GitHub issue #180, and make best path choice aware of path rank. --- node/RemotePath.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/RemotePath.hpp') diff --git a/node/RemotePath.hpp b/node/RemotePath.hpp index 5592c8e1..291943c9 100644 --- a/node/RemotePath.hpp +++ b/node/RemotePath.hpp @@ -56,7 +56,7 @@ public: _fixed(false) {} RemotePath(const InetAddress &addr,bool fixed) : - Path(addr,0,TRUST_NORMAL,false), + Path(addr,0,TRUST_NORMAL), _lastSend(0), _lastReceived(0), _fixed(fixed) {} @@ -123,7 +123,7 @@ public: */ inline bool send(const RuntimeEnvironment *RR,const void *data,unsigned int len,uint64_t now) { - if (RR->node->putPacket(_addr,data,len)) { + if (RR->node->putPacket(address(),data,len)) { sent(now); RR->antiRec->logOutgoingZT(data,len); return true; -- cgit v1.2.3