tailcfg: Add user derps field to derpmap

Adds a field to derpmaps which will allow for users to specify their own DERP nodes outside of
those specified by tailscale's regions.

Signed-off-by: julianknodt <julianknodt@gmail.com>
This commit is contained in:
julianknodt 2021-06-21 15:22:48 -07:00
parent ad288baaea
commit 1ab09bd036
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ type DERPMap struct {
//
// The numbers are not necessarily contiguous.
Regions map[int]*DERPRegion
// UserSpecified is the set of user run DERP nodes specific to this tailnet.
UserSpecified []*DERPNode
}
/// RegionIDs returns the sorted region IDs.