Fix TCP client interface mode: MODE_GATEWAY → MODE_FULL

Gateway mode is for server-side interfaces facing clients per the
Reticulum manual. Client connections to a hub should use MODE_FULL.
This commit is contained in:
DeFiDude
2026-04-05 19:22:24 -06:00
parent 92112de000
commit ed61d901ff
+2 -2
View File
@@ -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());
}
}