Skip to content

Commit 581c197

Browse files
committed
stricter filtering strategy
1 parent 4593074 commit 581c197

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/massdns/process.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,16 @@ func (c *Client) filterWildcards(st *store.Store) error {
147147
if wildcard {
148148
c.wildcardIPMutex.Lock()
149149
for ip := range ips {
150+
// we add the single ip to the wildcard list
150151
c.wildcardIPMap[ip] = struct{}{}
152+
// we also mark the original ip as wildcard, since at least once it resolved to this host
153+
c.wildcardIPMap[record.IP] = struct{}{}
151154
}
152155
c.wildcardIPMutex.Unlock()
153156
}
154157
}(host)
155-
record.Validated = true
156158
}
159+
record.Validated = true
157160
}
158161

159162
wildcardWg.Wait()

0 commit comments

Comments
 (0)