mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-20 09:57:31 +00:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user