From 8f0019682186059b81e719c9b7394e17e20dc896 Mon Sep 17 00:00:00 2001 From: Audric Date: Tue, 19 May 2026 14:48:02 +0200 Subject: [PATCH] warn when [SATELLITE] section is set on a satellite node A satellite (SATELLITE_OF set) returns early from Reflector::initialize() before initSatelliteServer() runs, so any [SATELLITE] block is silently ignored. Child satellites then get connection-refused with nothing in the parent's log explaining why. Emit a warn at startup so the misconfig surfaces immediately. --- src/svxlink/reflector/Reflector.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/svxlink/reflector/Reflector.cpp b/src/svxlink/reflector/Reflector.cpp index 20ac01a..2eefab9 100644 --- a/src/svxlink/reflector/Reflector.cpp +++ b/src/svxlink/reflector/Reflector.cpp @@ -521,6 +521,15 @@ bool Reflector::initialize(Async::Config &cfg) !satellite_of.empty()) { m_is_satellite = true; + std::string sat_listen_port_unused; + if (cfg.getValue("SATELLITE", "LISTEN_PORT", sat_listen_port_unused)) + { + geulog::warn("core", + "[SATELLITE] section is ignored on a satellite node " + "(SATELLITE_OF is set). Satellites are leaf nodes and cannot " + "accept child satellites; remove the [SATELLITE] block or " + "unset SATELLITE_OF."); + } m_satellite_client = new SatelliteClient(this, cfg); if (!m_satellite_client->initialize()) {