Skip to content

Commit b55d512

Browse files
VishalDalwadiabhishek9686
authored andcommitted
fix(go): use iterator var to set ns;
1 parent 4902e83 commit b55d512

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

logic/dns.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,16 +379,16 @@ func GetNameserversForHost(h *models.Host) (returnNsLi []models.Nameserver) {
379379
_, all := nsI.Tags["*"]
380380
if all {
381381
returnNsLi = append(returnNsLi, models.Nameserver{
382-
IPs: ns.Servers,
383-
MatchDomain: ns.MatchDomain,
382+
IPs: nsI.Servers,
383+
MatchDomain: nsI.MatchDomain,
384384
})
385385
continue
386386
}
387387
for tagI := range node.Tags {
388388
if _, ok := nsI.Tags[tagI.String()]; ok {
389389
returnNsLi = append(returnNsLi, models.Nameserver{
390-
IPs: ns.Servers,
391-
MatchDomain: ns.MatchDomain,
390+
IPs: nsI.Servers,
391+
MatchDomain: nsI.MatchDomain,
392392
})
393393
}
394394
}

0 commit comments

Comments
 (0)