Fix static host map wrong responder situations, correct logging (#1259)

This commit is contained in:
Nate Brown
2024-10-23 14:28:02 -05:00
committed by GitHub
parent 3f6a7cb250
commit 3e6c75573f
3 changed files with 129 additions and 29 deletions

View File

@@ -576,7 +576,9 @@ func (r *RemoteList) unlockedCollect() {
dnsAddrs := r.hr.GetIPs()
for _, addr := range dnsAddrs {
if r.shouldAdd == nil || r.shouldAdd(addr.Addr()) {
addrs = append(addrs, addr)
if !r.unlockedIsBad(addr) {
addrs = append(addrs, addr)
}
}
}