浏览代码

Actually invoke extended armor

Adam Ierymenko 11 月之前
父节点
当前提交
74404f56ee
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      node/Peer.cpp

+ 1 - 2
node/Peer.cpp

@@ -465,8 +465,7 @@ void Peer::sendHELLO(void* tPtr, const int64_t localSocket, const InetAddress& a
     Metrics::pkt_hello_out++;
 
     if (atAddress) {
-        // TODO: this is where extended armor should be invoked
-        outp.armor(_key, false, false, nullptr, _id);
+        outp.armor(_key, false, true, nullptr, _id);
         RR->node->expectReplyTo(outp.packetId());
         RR->node->putPacket(tPtr, RR->node->lowBandwidthModeEnabled() ? localSocket : -1, atAddress, outp.data(), outp.size());
     }