Allow wildcard in blacklist.

This commit is contained in:
buffermet 2024-10-12 22:05:29 +02:00
parent ccb2774814
commit 6de6de7418
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ func (p *DNSProxy) shouldProxy(clientIP string) bool {
// check if this client is in the blacklist
for _, ip := range p.Blacklist {
if clientIP == ip {
if ip == "*" || clientIP == ip {
return false
}
}