diff --git a/client/tailscale/acl.go b/client/tailscale/acl.go index 48a030a8b..52bbb2a3f 100644 --- a/client/tailscale/acl.go +++ b/client/tailscale/acl.go @@ -161,7 +161,12 @@ func (c *Client) ACLHuJSON(ctx context.Context) (acl *ACLHuJSON, err error) { // ACLTestFailureSummary specifies the JSON format sent to the // JavaScript client to be rendered in the HTML. type ACLTestFailureSummary struct { - User string `json:"user,omitempty"` + // User is the source ("src") value of the ACL test that failed. + // The name "user" is a legacy holdover from the original naming and + // is kept for compatibility but it may also contain any value + // that's valid in a ACL test "src" field. + User string `json:"user,omitempty"` + Errors []string `json:"errors,omitempty"` Warnings []string `json:"warnings,omitempty"` }