Skip to content

Commit 3c653bd

Browse files
committed
tailscale,v2: remove InsecureForTests and STUNTestIP from ACLDERPNode type
These are not officially supported configuration options. Also, InsecureForTests did not work anyway because the JSON name was misspelled. Updates tailscale/tailscale#11776 Signed-off-by: Percy Wegmann <[email protected]>
1 parent 04b7d00 commit 3c653bd

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

tailscale/client.go

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -464,17 +464,15 @@ type (
464464
}
465465

466466
ACLDERPNode struct {
467-
Name string `json:"name" hujson:"Name"`
468-
RegionID int `json:"regionID" hujson:"RegionID"`
469-
HostName string `json:"hostName" hujson:"HostName"`
470-
CertName string `json:"certName,omitempty" hujson:"CertName,omitempty"`
471-
IPv4 string `json:"ipv4,omitempty" hujson:"IPv4,omitempty"`
472-
IPv6 string `json:"ipv6,omitempty" hujson:"IPv6,omitempty"`
473-
STUNPort int `json:"stunPort,omitempty" hujson:"STUNPort,omitempty"`
474-
STUNOnly bool `json:"stunOnly,omitempty" hujson:"STUNOnly,omitempty"`
475-
DERPPort int `json:"derpPort,omitempty" hujson:"DERPPort,omitempty"`
476-
InsecureForTests bool `json:"insecureForRests,omitempty" hujson:"InsecureForTests,omitempty"`
477-
STUNTestIP string `json:"stunTestIP,omitempty" hujson:"STUNTestIP,omitempty"`
467+
Name string `json:"name" hujson:"Name"`
468+
RegionID int `json:"regionID" hujson:"RegionID"`
469+
HostName string `json:"hostName" hujson:"HostName"`
470+
CertName string `json:"certName,omitempty" hujson:"CertName,omitempty"`
471+
IPv4 string `json:"ipv4,omitempty" hujson:"IPv4,omitempty"`
472+
IPv6 string `json:"ipv6,omitempty" hujson:"IPv6,omitempty"`
473+
STUNPort int `json:"stunPort,omitempty" hujson:"STUNPort,omitempty"`
474+
STUNOnly bool `json:"stunOnly,omitempty" hujson:"STUNOnly,omitempty"`
475+
DERPPort int `json:"derpPort,omitempty" hujson:"DERPPort,omitempty"`
478476
}
479477

480478
ACLSSH struct {

v2/policyfile.go

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,15 @@ type ACLDERPRegion struct {
8686
}
8787

8888
type ACLDERPNode struct {
89-
Name string `json:"name" hujson:"Name"`
90-
RegionID int `json:"regionID" hujson:"RegionID"`
91-
HostName string `json:"hostName" hujson:"HostName"`
92-
CertName string `json:"certName,omitempty" hujson:"CertName,omitempty"`
93-
IPv4 string `json:"ipv4,omitempty" hujson:"IPv4,omitempty"`
94-
IPv6 string `json:"ipv6,omitempty" hujson:"IPv6,omitempty"`
95-
STUNPort int `json:"stunPort,omitempty" hujson:"STUNPort,omitempty"`
96-
STUNOnly bool `json:"stunOnly,omitempty" hujson:"STUNOnly,omitempty"`
97-
DERPPort int `json:"derpPort,omitempty" hujson:"DERPPort,omitempty"`
98-
InsecureForTests bool `json:"insecureForRests,omitempty" hujson:"InsecureForTests,omitempty"`
99-
STUNTestIP string `json:"stunTestIP,omitempty" hujson:"STUNTestIP,omitempty"`
89+
Name string `json:"name" hujson:"Name"`
90+
RegionID int `json:"regionID" hujson:"RegionID"`
91+
HostName string `json:"hostName" hujson:"HostName"`
92+
CertName string `json:"certName,omitempty" hujson:"CertName,omitempty"`
93+
IPv4 string `json:"ipv4,omitempty" hujson:"IPv4,omitempty"`
94+
IPv6 string `json:"ipv6,omitempty" hujson:"IPv6,omitempty"`
95+
STUNPort int `json:"stunPort,omitempty" hujson:"STUNPort,omitempty"`
96+
STUNOnly bool `json:"stunOnly,omitempty" hujson:"STUNOnly,omitempty"`
97+
DERPPort int `json:"derpPort,omitempty" hujson:"DERPPort,omitempty"`
10098
}
10199

102100
type ACLSSH struct {

0 commit comments

Comments
 (0)