adds ne lines
This commit is contained in:
parent
18e3b0844c
commit
aa0006f8e5
cmd/bind
@ -35,7 +35,8 @@ $TTL {{ or .TTL "1h" }}
|
|||||||
;
|
;
|
||||||
{{- range .BlockedDomains }}
|
{{- range .BlockedDomains }}
|
||||||
{{ . }} IN CNAME blocked.{{ $domain }}.
|
{{ . }} IN CNAME blocked.{{ $domain }}.
|
||||||
{{- end }}`
|
{{- end }}
|
||||||
|
`
|
||||||
|
|
||||||
t, err := template.New("response-policy-zone").Parse(outputTemplate)
|
t, err := template.New("response-policy-zone").Parse(outputTemplate)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -66,6 +66,8 @@ func getData(urls []string) []byte {
|
|||||||
log.Printf("[ERROR] Unable to get remote content from URL (%s): %v", u, err)
|
log.Printf("[ERROR] Unable to get remote content from URL (%s): %v", u, err)
|
||||||
}
|
}
|
||||||
listData = append(listData, data...)
|
listData = append(listData, data...)
|
||||||
|
// add newline to the end of data, you know, for funzies
|
||||||
|
listData = append(listData, '\n')
|
||||||
}
|
}
|
||||||
|
|
||||||
return listData
|
return listData
|
||||||
|
Loading…
x
Reference in New Issue
Block a user