some library updates and adds support for adblock lists
This commit is contained in:
@ -7,6 +7,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/asaskevich/govalidator"
|
||||
|
||||
"gitlab.smoothnet.org/nhyatt/bind-response-policy-zone-creator/internal/log"
|
||||
)
|
||||
|
||||
func parseComplex(data []byte) []string {
|
||||
@ -38,7 +40,7 @@ func parseComplex(data []byte) []string {
|
||||
if govalidator.IsDNSName(lineItems[1]) {
|
||||
domains = append(domains, lineItems[1])
|
||||
} else {
|
||||
cfg.Log.Debug("host invalid", "host", lineItems[0])
|
||||
log.Debug("host invalid", "host", lineItems[0])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user