We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc42fc3 commit 45c9585Copy full SHA for 45c9585
hscontrol/derp/derp.go
@@ -82,6 +82,9 @@ func mergeDERPMaps(derpMaps []*tailcfg.DERPMap) *tailcfg.DERPMap {
82
83
func GetDERPMap(cfg types.DERPConfig) *tailcfg.DERPMap {
84
var derpMaps []*tailcfg.DERPMap
85
+ if cfg.DERPMap != nil {
86
+ derpMaps = append(derpMaps, cfg.DERPMap)
87
+ }
88
89
for _, path := range cfg.Paths {
90
log.Debug().
hscontrol/types/config.go
@@ -176,6 +176,7 @@ type DERPConfig struct {
176
STUNAddr string
177
URLs []url.URL
178
Paths []string
179
+ DERPMap *tailcfg.DERPMap
180
AutoUpdate bool
181
UpdateFrequency time.Duration
182
IPv4 string
0 commit comments