summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2023-05-31 15:02:17 -0700
committerGitHub <[email protected]>2023-05-31 15:02:17 -0700
commit5ad0212b9370ee2c0d8fc8a09a2552ddfb27f5b8 (patch)
tree2de88c94d10e4781c71c4bd3f27e0bdc50616272 /node
parent30799dd73fec1ce3f82a51437ca06d66fc795e24 (diff)
Allow sending all surface addresses to peer in low-bandwidth mode
Diffstat (limited to 'node')
-rw-r--r--node/Peer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index 6fcf193d..d7f543ea 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<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()) {
std::vector<InetAddress>::const_iterator p(pathsToPush.begin());
while (p != pathsToPush.end()) {