package api // The VPN tab: this machine's WireGuard tunnels and who is on them. Read-only, and per // machine like every other tab — the tunnels shown are the ones on the machine in the // switcher, which is the only honest way to show them: the inbound server and an outbound // tunnel are different machines here. import ( "net/http" "hamlab/internal/vpn" ) func (s *Server) vpnReport(w http.ResponseWriter, r *http.Request) { jsonOK(w, 200, vpn.Look(r.Context())) }