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

@@ -142,6 +142,10 @@ type DERPNode struct {
// STUNTestIP is used in tests to override the STUN server's IP.
// If empty, it's assumed to be the same as the DERP server.
STUNTestIP string `json:",omitempty"`
// CanPort80 specifies whether this DERP node is accessible over HTTP
// on port 80 specifically. This is used for captive portal checks.
CanPort80 bool `json:",omitempty"`
}
// DotInvalid is a fake DNS TLD used in tests for an invalid hostname.