diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-12-18 14:51:24 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-12-18 14:51:24 -0800 |
commit | d3dacf5c2a441ca0f76d0cffe68e6e64113edd80 (patch) | |
tree | 63552f064d3132437dbab837edbe28ab72c6ecb6 /node | |
parent | 13036a10855bfb45870b769604b60b3bebc3717e (diff) | |
download | infinitytier-d3dacf5c2a441ca0f76d0cffe68e6e64113edd80.tar.gz infinitytier-d3dacf5c2a441ca0f76d0cffe68e6e64113edd80.zip |
Tiny bit of dead code cleanup.
Diffstat (limited to 'node')
-rw-r--r-- | node/Peer.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 891827b4..340f0c10 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -312,21 +312,7 @@ void Peer::pushDirectPaths(const RuntimeEnvironment *RR,Path *path,uint64_t now, continue; } - uint8_t flags = 0; - /* TODO: path trust is not implemented yet - switch(p->trust()) { - default: - break; - case Path::TRUST_PRIVACY: - flags |= 0x04; // no encryption - break; - case Path::TRUST_ULTIMATE: - flags |= (0x04 | 0x08); // no encryption, no authentication (redundant but go ahead and set both) - break; - } - */ - - outp.append(flags); + outp.append((uint8_t)0); // no flags outp.append((uint16_t)0); // no extensions outp.append(addressType); outp.append((uint8_t)((addressType == 4) ? 6 : 18)); |