From bed6557a6d357b1a44055a5b296568e43e5e0fa7 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 25 Aug 2025 11:22:21 -0700 Subject: [PATCH] Re-enable relaying checks, also not bug related but put back after we decided to punt removing moons. --- node/Switch.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/node/Switch.cpp b/node/Switch.cpp index b536412fc..efa6c0ba2 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -79,12 +79,9 @@ void Switch::onRemotePacket(void* tPtr, const int64_t localSocket, const InetAdd if (destination != RR->identity.address()) { // RELAY: fragment is for a different node, so maybe send it there if we should relay. - - /* if ((! RR->topology->amUpstream()) && (! path->trustEstablished(now))) { return; } - */ if (fragment.hops() < ZT_RELAY_MAX_HOPS) { fragment.incrementHops(); @@ -166,7 +163,7 @@ void Switch::onRemotePacket(void* tPtr, const int64_t localSocket, const InetAdd if (destination != RR->identity.address()) { // RELAY: packet head is for a different node, so maybe send it there if we should relay. - if (/* (! RR->topology->amUpstream()) && (! path->trustEstablished(now)) && */ (source != RR->identity.address())) { + if ((! RR->topology->amUpstream()) && (! path->trustEstablished(now)) && (source != RR->identity.address())) { return; }