From 1458ea92a41788a0f33e86e621817613f46055eb Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 7 Nov 2026 22:35:09 +0100 Subject: dashboard: own links over the API, and CORS GET /admin/dashboard/links/own and its event stream: a node's own links, as LINKS_REPLY carried them, for other members' dashboards with a token. CORS for the members' dashboard origins and --cors-origins, without credentials. Auth plan M3. --- src/swarm/links.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/swarm') diff --git a/src/swarm/links.rs b/src/swarm/links.rs index ea5564e..2234783 100644 --- a/src/swarm/links.rs +++ b/src/swarm/links.rs @@ -1019,7 +1019,7 @@ pub(crate) async fn watch(state: AppState) { /// dormancy, a round trip measured or moved by more than a fifth (and 1 ms), or a clock /// measured or moved beyond both bounds. Round trips and clock samples wobble; small /// moves aren't news. -fn changed(old: &[Link], new: &[Link]) -> bool { +pub(crate) fn changed(old: &[Link], new: &[Link]) -> bool { let clock_moved = |a: Option, b: Option| match (a, b) { (Some(a), Some(b)) => { a.offset_ms.abs_diff(b.offset_ms) > a.within_ms.saturating_add(b.within_ms) -- cgit v1.3.1