some library updates and adds support for adblock lists
This commit is contained in:
@ -5,8 +5,10 @@ import (
|
||||
|
||||
"text/template"
|
||||
|
||||
"pihole-blocklist/bind/assets"
|
||||
"pihole-blocklist/bind/internal/config"
|
||||
"gitlab.smoothnet.org/nhyatt/bind-response-policy-zone-creator/assets"
|
||||
|
||||
"gitlab.smoothnet.org/nhyatt/bind-response-policy-zone-creator/internal/common"
|
||||
"gitlab.smoothnet.org/nhyatt/bind-response-policy-zone-creator/internal/log"
|
||||
)
|
||||
|
||||
func buildBindResponsePolicyFile() error {
|
||||
@ -25,11 +27,11 @@ func buildBindResponsePolicyFile() error {
|
||||
return err
|
||||
}
|
||||
|
||||
bytesWritten, err := config.WriteFile(cfg.BindOutputFileName, output.Bytes())
|
||||
bytesWritten, err := common.WriteFile(cfg.BindOutputFileName, output.Bytes())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cfg.Log.Debug("file created", "file", cfg.BindOutputFileName, "bytes", bytesWritten)
|
||||
log.Debug("file created", "file", cfg.BindOutputFileName, "bytes", bytesWritten)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user