Load DERP servers from file

This commit is contained in:
Juan Font Alonso 2021-02-20 23:57:06 +01:00
parent c5fbc5baa8
commit a6100dc4d0
6 changed files with 87 additions and 2 deletions

View file

@ -201,7 +201,7 @@ func (h *Headscale) getMapResponse(mKey wgcfg.Key, req tailcfg.MapRequest, m Mac
SearchPaths: []string{},
Domain: "foobar@example.com",
PacketFilter: tailcfg.FilterAllowAll,
DERPMap: &tailcfg.DERPMap{},
DERPMap: h.cfg.DerpMap,
UserProfiles: []tailcfg.UserProfile{},
Roles: []tailcfg.Role{}}