From 5ad0212b9370ee2c0d8fc8a09a2552ddfb27f5b8 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Wed, 31 May 2023 15:02:17 -0700 Subject: [PATCH] Allow sending all surface addresses to peer in low-bandwidth mode --- node/Peer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/node/Peer.cpp b/node/Peer.cpp index 6fcf193d9..d7f543ead 100644 --- a/node/Peer.cpp +++ b/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)) { _lastDirectPathPushSent = now; std::vector pathsToPush(RR->node->directPaths()); - if (! lowBandwidth) { - std::vector ma = RR->sa->whoami(); - pathsToPush.insert(pathsToPush.end(), ma.begin(), ma.end()); - } + std::vector ma = RR->sa->whoami(); + pathsToPush.insert(pathsToPush.end(), ma.begin(), ma.end()); if (!pathsToPush.empty()) { std::vector::const_iterator p(pathsToPush.begin()); while (p != pathsToPush.end()) {