tailcfg: add CanPort80 field to DERPNode

A follow-up PR will start using this field after we set it in our
production DERPMap.

Updates #7925

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Idb41b79e6055dddb8944f79d91ad4a186ace98c7
This commit is contained in:
Andrew Dunham
2023-04-20 10:21:46 -04:00
parent 04a3118d45
commit 6f521c138d
3 changed files with 7 additions and 0 deletions

View File

@@ -802,6 +802,7 @@ func (v DERPNodeView) STUNOnly() bool { return v.ж.STUNOnly }
func (v DERPNodeView) DERPPort() int { return v.ж.DERPPort }
func (v DERPNodeView) InsecureForTests() bool { return v.ж.InsecureForTests }
func (v DERPNodeView) STUNTestIP() string { return v.ж.STUNTestIP }
func (v DERPNodeView) CanPort80() bool { return v.ж.CanPort80 }
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _DERPNodeViewNeedsRegeneration = DERPNode(struct {
@@ -816,6 +817,7 @@ var _DERPNodeViewNeedsRegeneration = DERPNode(struct {
DERPPort int
InsecureForTests bool
STUNTestIP string
CanPort80 bool
}{})
// View returns a readonly view of SSHRule.