diff --git a/ipn/localapi/localapi.go b/ipn/localapi/localapi.go index 28371a45d..e57567ab5 100644 --- a/ipn/localapi/localapi.go +++ b/ipn/localapi/localapi.go @@ -930,8 +930,8 @@ func InUseOtherUserIPNStream(w http.ResponseWriter, r *http.Request, err error) } func (h *Handler) serveWatchIPNBus(w http.ResponseWriter, r *http.Request) { - if !h.PermitWrite { - http.Error(w, "denied", http.StatusForbidden) + if !h.PermitRead { + http.Error(w, "watch ipn bus access denied", http.StatusForbidden) return } f, ok := w.(http.Flusher)