mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-07-19 10:16:14 +00:00
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:
+2
-2
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user