diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-13 10:03:04 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-13 10:03:04 -0700 |
| commit | 0b354803f3ea0eecd046a37c51d4d2d78934b502 (patch) | |
| tree | f5c2afa2c57b0726047a43b6b4c681d9b161999a /node/RemotePath.hpp | |
| parent | 0b9524f23d96ad4752a2a2cace92bc1c0306b1b6 (diff) | |
| download | infinitytier-0b354803f3ea0eecd046a37c51d4d2d78934b502.tar.gz infinitytier-0b354803f3ea0eecd046a37c51d4d2d78934b502.zip | |
Clean up some YAGNI issues with implementation of GitHub issue #180, and make best path choice aware of path rank.
Diffstat (limited to 'node/RemotePath.hpp')
| -rw-r--r-- | node/RemotePath.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
