From ed61d901ff35e794c19858bca5736dd7a726ae6a Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Sun, 5 Apr 2026 19:22:24 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20TCP=20client=20interface=20mode:=20MODE?= =?UTF-8?q?=5FGATEWAY=20=E2=86=92=20MODE=5FFULL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gateway mode is for server-side interfaces facing clients per the Reticulum manual. Client connections to a hub should use MODE_FULL. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b1990ad..b951d80 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -195,11 +195,11 @@ static void reloadTCPClients() { snprintf(name, sizeof(name), "TCP.%s", ep.host.c_str()); auto* tcp = new TCPClientInterface(ep.host.c_str(), ep.port, name); tcpIfaces.emplace_back(tcp); - tcpIfaces.back().mode(RNS::Type::Interface::MODE_GATEWAY); + tcpIfaces.back().mode(RNS::Type::Interface::MODE_FULL); RNS::Transport::register_interface(tcpIfaces.back()); tcp->start(); tcpClients.push_back(tcp); - Serial.printf("[TCP] Created client: %s:%d (registered with Transport, mode=GATEWAY)\n", ep.host.c_str(), ep.port); + Serial.printf("[TCP] Created client: %s:%d (registered with Transport, mode=FULL)\n", ep.host.c_str(), ep.port); Serial.printf("[TCP] Total interfaces registered: %d\n", (int)RNS::Transport::get_interfaces().size()); } }