diff options
| author | julianknodt <julianknodt@gmail.com> | 2021-06-21 15:22:48 -0700 |
|---|---|---|
| committer | julianknodt <julianknodt@gmail.com> | 2021-06-21 15:30:10 -0700 |
| commit | 1ab09bd0363b974472a6fea18d2f1606ac217c59 (patch) | |
| tree | 94d514b0876fb8114b55c4b0fe8a56b3983efebe | |
| parent | ad288baaeab55e16cc43f7dadbadaa0303b92c52 (diff) | |
| download | tailscale-jknodt/userderp.tar.xz tailscale-jknodt/userderp.zip | |
tailcfg: Add user derps field to derpmapjknodt/userderp
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>
| -rw-r--r-- | tailcfg/derpmap.go | 3 |
1 files changed, 3 insertions, 0 deletions
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. |
