Fixed issue in tests
This commit is contained in:
parent
8d60ae2c7e
commit
47dcc940c0
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ func (h *Headscale) toNode(m Machine, includeRoutes bool) (*tailcfg.Node, error)
|
|||
}
|
||||
|
||||
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)
|
||||
} else {
|
||||
hostname = m.Name
|
||||
|
|
Loading…
Reference in a new issue