Upgrade path as const

This commit is contained in:
Juan Font Alonso 2022-04-30 23:32:58 +02:00
parent 841f811f35
commit 1df64acbac

View file

@ -19,6 +19,9 @@ const (
) )
const ( const (
// ts2021UpgradePath is the path that the server listens on for the WebSockets upgrade
ts2021UpgradePath = "/ts2021"
// upgradeHeader is the value of the Upgrade HTTP header used to // upgradeHeader is the value of the Upgrade HTTP header used to
// indicate the Tailscale control protocol. // indicate the Tailscale control protocol.
upgradeHeaderValue = "tailscale-control-protocol" upgradeHeaderValue = "tailscale-control-protocol"