mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
Merge branch 'NM-96' of https://github.com/gravitl/netmaker into NM-96
This commit is contained in:
commit
9d3f9fc768
1 changed files with 4 additions and 4 deletions
|
@ -414,16 +414,16 @@ func GetNameserversForHost(h *models.Host) (returnNsLi []models.Nameserver) {
|
|||
_, all := nsI.Tags["*"]
|
||||
if all {
|
||||
returnNsLi = append(returnNsLi, models.Nameserver{
|
||||
IPs: ns.Servers,
|
||||
MatchDomain: ns.MatchDomain,
|
||||
IPs: nsI.Servers,
|
||||
MatchDomain: nsI.MatchDomain,
|
||||
})
|
||||
continue
|
||||
}
|
||||
for tagI := range node.Tags {
|
||||
if _, ok := nsI.Tags[tagI.String()]; ok {
|
||||
returnNsLi = append(returnNsLi, models.Nameserver{
|
||||
IPs: ns.Servers,
|
||||
MatchDomain: ns.MatchDomain,
|
||||
IPs: nsI.Servers,
|
||||
MatchDomain: nsI.MatchDomain,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue