diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-01-27 15:27:26 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-01-27 15:27:26 -0800 |
| commit | 9f7919f71f6b4326e73759923d2cf747affc0244 (patch) | |
| tree | 934294697a07df005e3f0df56a085f3eeb292b38 /node/Peer.cpp | |
| parent | 0b3b994241161c996c8432a2fb25e47b0f84c359 (diff) | |
| download | infinitytier-9f7919f71f6b4326e73759923d2cf747affc0244.tar.gz infinitytier-9f7919f71f6b4326e73759923d2cf747affc0244.zip | |
Add comments to join ("orbit") moons.
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 441a5b33..50135b9f 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -366,8 +366,13 @@ void Peer::sendHELLO(const InetAddress &localAddr,const InetAddress &atAddress,u } RR->node->expectReplyTo(outp.packetId()); - outp.armor(_key,false); // HELLO is sent in the clear - RR->node->putPacket(localAddr,atAddress,outp.data(),outp.size()); + + if (atAddress) { + outp.armor(_key,false); + RR->node->putPacket(localAddr,atAddress,outp.data(),outp.size()); + } else { + RR->sw->send(outp,false); + } } void Peer::attemptToContactAt(const InetAddress &localAddr,const InetAddress &atAddress,uint64_t now) |
