Return all peers instead of peers in same namespace
This commit is contained in:
parent
73497382b7
commit
9b7d657cbe
2 changed files with 67 additions and 26 deletions
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue