pub async fn run_relay(state: AppState)Expand description
The relay dial-out loop (Stage C). Parks unless remote viewing is configured AND kernel auth is enabled AND a real (active) user exists — so the REST API is never relayed while auth is off. Runs a small pool of concurrent pollers for responsiveness.