v0.42.2_fix1

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 11:53:05 +01:00
1 parent f38a2b9e5e
commit 15c7f9ff9e
24 files changed
+464 -77

No files matched your search

+16
View File
@@ -1,5 +1,21 @@
include!("status_system.rs");
/// Live, read-only diagnostics for every configured DNS/DDNS ACL hostname.
/// In particular, a successful lookup need not match the address of a caller.
async fn dns_acl_status(State(state): State<Arc<App>>) -> Result<Json<Value>, ApiError> {
let snapshot = state.config.load();
let hostnames = crate::acl::dynamic::statuses(&snapshot.envelope.config).map_err(|error| {
ApiError(
StatusCode::INTERNAL_SERVER_ERROR,
format!("cannot enumerate ACL DDNS hostnames: {error}"),
)
})?;
Ok(Json(json!({
"refresh_seconds": crate::acl::dynamic::REFRESH_SECONDS,
"hostnames": hostnames,
})))
}
fn status_payload(state: &App) -> Value {
let snapshot = state.config.load_full();
let listeners = json!({