client/tailscale: adding missing proto field in ACL parsing structures (#13051)

Signed-off-by: Seaver Thorn <swthorn@ncsu.edu>
pull/12963/head
Seaver Thorn 3 months ago committed by GitHub
parent 8e1c00f841
commit 345876da33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,6 +19,7 @@ import (
// Only one of Src/Dst or Users/Ports may be specified. // Only one of Src/Dst or Users/Ports may be specified.
type ACLRow struct { type ACLRow struct {
Action string `json:"action,omitempty"` // valid values: "accept" Action string `json:"action,omitempty"` // valid values: "accept"
Proto string `json:"proto,omitempty"` // protocol
Users []string `json:"users,omitempty"` // old name for src Users []string `json:"users,omitempty"` // old name for src
Ports []string `json:"ports,omitempty"` // old name for dst Ports []string `json:"ports,omitempty"` // old name for dst
Src []string `json:"src,omitempty"` Src []string `json:"src,omitempty"`
@ -31,6 +32,7 @@ type ACLRow struct {
type ACLTest struct { type ACLTest struct {
Src string `json:"src,omitempty"` // source Src string `json:"src,omitempty"` // source
User string `json:"user,omitempty"` // old name for source User string `json:"user,omitempty"` // old name for source
Proto string `json:"proto,omitempty"` // protocol
Accept []string `json:"accept,omitempty"` // expected destination ip:port that user can access Accept []string `json:"accept,omitempty"` // expected destination ip:port that user can access
Deny []string `json:"deny,omitempty"` // expected destination ip:port that user cannot access Deny []string `json:"deny,omitempty"` // expected destination ip:port that user cannot access

Loading…
Cancel
Save