client/tailscale: add Via to UserRuleMatch

This adds the Via field for the https://tailscale.com/kb/1378/via
feature to the ACLPreview response.

Updates tailscale/corp#22239

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/13046/head
Maisem Ali 4 months ago committed by Maisem Ali
parent 2a88428f24
commit ce4413a0bc

@ -286,6 +286,9 @@ type UserRuleMatch struct {
Users []string `json:"users"` Users []string `json:"users"`
Ports []string `json:"ports"` Ports []string `json:"ports"`
LineNumber int `json:"lineNumber"` LineNumber int `json:"lineNumber"`
// Via is the list of targets through which Users can access Ports.
// See https://tailscale.com/kb/1378/via for more information.
Via []string `json:"via,omitempty"`
// Postures is a list of posture policies that are // Postures is a list of posture policies that are
// associated with this match. The rules can be looked // associated with this match. The rules can be looked

Loading…
Cancel
Save