some library updates and adds support for adblock lists

This commit is contained in:
2025-05-02 20:57:03 -05:00
parent 03b1cc13ee
commit ce4b4a11ff
19 changed files with 712 additions and 139 deletions

View File

@ -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])
}
}
}