mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-31 00:03:47 +00:00
tailcfg: add vendor to DERPRegion
Allows us to easily track which vendor (hosting provider) is hosting the DERP relay nodes in each region. Updates tailscale/corp#29615 Signed-off-by: Dylan Bargatze <dylan@tailscale.com>
This commit is contained in:
parent
6a4d92ecef
commit
a1ac94aedb
@ -92,6 +92,10 @@ type DERPRegion struct {
|
|||||||
// "San Francisco", "Singapore", "Frankfurt", etc.
|
// "San Francisco", "Singapore", "Frankfurt", etc.
|
||||||
RegionName string
|
RegionName string
|
||||||
|
|
||||||
|
// RegionVendor is the name of the hosting provider for the region:
|
||||||
|
// "NetActuate", "Digital Ocean", "Hetzner", etc.
|
||||||
|
RegionVendor string
|
||||||
|
|
||||||
// Latitude, Longitude are optional geographical coordinates of the DERP region's city, in degrees.
|
// Latitude, Longitude are optional geographical coordinates of the DERP region's city, in degrees.
|
||||||
Latitude float64 `json:",omitempty"`
|
Latitude float64 `json:",omitempty"`
|
||||||
Longitude float64 `json:",omitempty"`
|
Longitude float64 `json:",omitempty"`
|
||||||
|
@ -423,6 +423,7 @@ var _DERPRegionCloneNeedsRegeneration = DERPRegion(struct {
|
|||||||
RegionID int
|
RegionID int
|
||||||
RegionCode string
|
RegionCode string
|
||||||
RegionName string
|
RegionName string
|
||||||
|
RegionVendor string
|
||||||
Latitude float64
|
Latitude float64
|
||||||
Longitude float64
|
Longitude float64
|
||||||
Avoid bool
|
Avoid bool
|
||||||
|
@ -899,6 +899,7 @@ var _DERPRegionViewNeedsRegeneration = DERPRegion(struct {
|
|||||||
RegionID int
|
RegionID int
|
||||||
RegionCode string
|
RegionCode string
|
||||||
RegionName string
|
RegionName string
|
||||||
|
RegionVendor string
|
||||||
Latitude float64
|
Latitude float64
|
||||||
Longitude float64
|
Longitude float64
|
||||||
Avoid bool
|
Avoid bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user