utils/dnsbl: fix ipv6 lookup

This commit is contained in:
WeebDataHoarder
2025-08-14 21:00:24 +02:00
parent e1a318bc38
commit e17e4eded5
+1 -1
View File
@@ -55,7 +55,7 @@ func (bl DNSBL) Lookup(ctx context.Context, ip net.IP) (DNSBLResponse, error) {
target = make([]byte, 0, len(bl.target)+1+len(ip)*4)
for i := len(ip) - 1; i >= 0; i-- {
target = append(target, nibbleTable[ip[i]&0xf], '.', ip[i]>>4, '.')
target = append(target, nibbleTable[ip[i]&0xf], '.', nibbleTable[ip[i]>>4], '.')
}
}