瀏覽代碼

Allow sending all surface addresses to peer in low-bandwidth mode

Joseph Henry 2 年之前
父節點
當前提交
5ad0212b93
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      node/Peer.cpp

+ 2 - 4
node/Peer.cpp

@@ -210,10 +210,8 @@ void Peer::received(
 		if (sinceLastPush >= ((hops == 0) ? ZT_DIRECT_PATH_PUSH_INTERVAL_HAVEPATH * timerScale : ZT_DIRECT_PATH_PUSH_INTERVAL)) {
 		if (sinceLastPush >= ((hops == 0) ? ZT_DIRECT_PATH_PUSH_INTERVAL_HAVEPATH * timerScale : ZT_DIRECT_PATH_PUSH_INTERVAL)) {
 			_lastDirectPathPushSent = now;
 			_lastDirectPathPushSent = now;
 			std::vector<InetAddress> pathsToPush(RR->node->directPaths());
 			std::vector<InetAddress> pathsToPush(RR->node->directPaths());
-			if (! lowBandwidth) {
-				std::vector<InetAddress> ma = RR->sa->whoami();
-				pathsToPush.insert(pathsToPush.end(), ma.begin(), ma.end());
-			}
+			std::vector<InetAddress> ma = RR->sa->whoami();
+			pathsToPush.insert(pathsToPush.end(), ma.begin(), ma.end());
 			if (!pathsToPush.empty()) {
 			if (!pathsToPush.empty()) {
 				std::vector<InetAddress>::const_iterator p(pathsToPush.begin());
 				std::vector<InetAddress>::const_iterator p(pathsToPush.begin());
 				while (p != pathsToPush.end()) {
 				while (p != pathsToPush.end()) {