From feb349ee09aa2151c421840bec521719c6149dcb Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 24 Oct 2026 15:30:04 +0200 Subject: add API and CLI to print effective config --- src/state.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index a47211f..df053a6 100644 --- a/src/state.rs +++ b/src/state.rs @@ -597,6 +597,9 @@ pub(crate) struct AppState { pub(crate) alias: Option, /// Members alive within this window vote on remakes (`--electorate-window-days`). pub(crate) electorate_window: Duration, + /// The effective configuration with sources, imported values left out + /// (`config::Loaded::report`), for `GET /admin/config`. + pub(crate) config: Arc, /// Our own connectivity record and stability tier (`swarm::stability`). pub(crate) stability: Arc>, /// Round-trip times to peers (`swarm::rtt`). -- cgit v1.3.1