mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
Fixed error on assign
This commit is contained in:
parent
36ae14bccf
commit
19492650d4
2
api.go
2
api.go
@ -249,7 +249,7 @@ func (h *Headscale) getMapResponse(mKey wgkey.Key, req tailcfg.MapRequest, m Mac
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
dnsConfig := h.cfg.DNSConfig.Clone()
|
||||
dnsConfig = h.cfg.DNSConfig.Clone()
|
||||
for _, ns := range *namespaces {
|
||||
dnsConfig.Domains = append(dnsConfig.Domains, fmt.Sprintf("%s.%s", ns.Name, h.cfg.BaseDomain))
|
||||
}
|
||||
|
@ -118,6 +118,7 @@ func GetDNSConfig() (*tailcfg.DNSConfig, string) {
|
||||
} else {
|
||||
baseDomain = "headscale.net" // does not really matter when MagicDNS is not enabled
|
||||
}
|
||||
|
||||
return dnsConfig, baseDomain
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user