1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

Fixed issue in tests

This commit is contained in:
Juan Font Alonso 2021-10-02 14:49:14 +02:00
parent 8d60ae2c7e
commit 47dcc940c0

View File

@ -148,7 +148,7 @@ func (h *Headscale) toNode(m Machine, includeRoutes bool) (*tailcfg.Node, error)
} }
var hostname string var hostname string
if h.cfg.DNSConfig.Proxied { // MagicDNS if h.cfg.DNSConfig != nil && h.cfg.DNSConfig.Proxied { // MagicDNS
hostname = fmt.Sprintf("%s.%s.%s", m.Name, m.Namespace.Name, h.cfg.BaseDomain) hostname = fmt.Sprintf("%s.%s.%s", m.Name, m.Namespace.Name, h.cfg.BaseDomain)
} else { } else {
hostname = m.Name hostname = m.Name