mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-25 08:32:31 +00:00
Return all peers instead of peers in same namespace
This commit is contained in:

committed by
Adrien Raffin-Caboisse

parent
73497382b7
commit
9b7d657cbe
6
dns.go
6
dns.go
@@ -163,7 +163,11 @@ func getMapResponseDNSConfig(
|
||||
dnsConfig = dnsConfigOrig.Clone()
|
||||
dnsConfig.Domains = append(
|
||||
dnsConfig.Domains,
|
||||
fmt.Sprintf("%s.%s", machine.Namespace.Name, baseDomain),
|
||||
fmt.Sprintf(
|
||||
"%s.%s",
|
||||
strings.Replace(machine.Namespace.Name, "@", ".", -1), // Replace @ with . for valid domain for machine
|
||||
baseDomain,
|
||||
),
|
||||
)
|
||||
|
||||
namespaceSet := set.New(set.ThreadSafe)
|
||||
|
Reference in New Issue
Block a user