瀏覽代碼

Almost certain fix for GitHub issue #184 on -dev

Adam Ierymenko 10 年之前
父節點
當前提交
87bb0086de
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      node/IncomingPacket.cpp

+ 1 - 0
node/IncomingPacket.cpp

@@ -689,6 +689,7 @@ bool IncomingPacket::_doNETWORK_CONFIG_REQUEST(const RuntimeEnvironment *RR,cons
 						outp.append((uint16_t)netconfStr.length());
 						outp.append((uint16_t)netconfStr.length());
 						outp.append(netconfStr.data(),(unsigned int)netconfStr.length());
 						outp.append(netconfStr.data(),(unsigned int)netconfStr.length());
 						outp.compress();
 						outp.compress();
+						outp.armor(peer->key(),true);
 						if (outp.size() > ZT_PROTO_MAX_PACKET_LENGTH) {
 						if (outp.size() > ZT_PROTO_MAX_PACKET_LENGTH) {
 							TRACE("NETWORK_CONFIG_REQUEST failed: internal error: netconf size %u is too large",(unsigned int)netconfStr.length());
 							TRACE("NETWORK_CONFIG_REQUEST failed: internal error: netconf size %u is too large",(unsigned int)netconfStr.length());
 						} else {
 						} else {