You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sync): make sync listener bind fatal and address configurable
The sync WebSocket listener always bound to its hardcoded default
address and, if the bind failed, logged a warning and continued
booting. That left the server up with no reachable sync listener and
no clear indication anything was wrong, silently stranding
NodeDB-Lite clients.
Add a `sync` port to `PortsConfig` (default 9090, overridable via
config file or `NODEDB_PORT_SYNC`) and a `ServerConfig::sync_addr()`
accessor, and wire `spawn_protocol_listeners` to use it instead of
`SyncListenerConfig::default()`. A sync-listener bind failure now
propagates as an `Err` instead of a non-fatal warning, so boot fails
loudly.
Closes#209
0 commit comments