From 1ab09bd0363b974472a6fea18d2f1606ac217c59 Mon Sep 17 00:00:00 2001 From: julianknodt Date: Mon, 21 Jun 2021 15:22:48 -0700 Subject: [PATCH] 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 --- tailcfg/derpmap.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailcfg/derpmap.go b/tailcfg/derpmap.go index 6abc63695..43ece3532 100644 --- a/tailcfg/derpmap.go +++ b/tailcfg/derpmap.go @@ -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.