Skip to content

Commit

Permalink
tailcfg: add CanPort80 field to DERPNode
Browse files Browse the repository at this point in the history
A follow-up PR will start using this field after we set it in our
production DERPMap.

Updates tailscale#7925

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Idb41b79e6055dddb8944f79d91ad4a186ace98c7
  • Loading branch information
andrew-d committed Apr 21, 2023
1 parent 04a3118 commit 6f521c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tailcfg/derpmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions tailcfg/tailcfg_clone.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tailcfg/tailcfg_view.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6f521c1

Please sign in to comment.