Import Anubis v1.28.2
Replace the tree with upstream TecharoHQ/anubis v1.28.2 (a1384fbf42e3). Masyunis customizations are re-applied in the following commits.
This commit is contained in:
1 parent
eb3e46d8d0
commit
e07de898cd
573 files changed
+35846
-6807
No files matched your search
@@ -90,14 +90,21 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatalf("can't create output file %q: %v", foutName, err)
|
||||
}
|
||||
defer fout.Close()
|
||||
|
||||
fmt.Fprintf(fout, "# Generated by %s on %s from %s\n\n", filepath.Base(os.Args[0]), time.Now().Format(time.RFC3339), blocklistURL)
|
||||
if _, err := fmt.Fprintf(fout, "# Generated by %s on %s from %s\n\n", filepath.Base(os.Args[0]), time.Now().Format(time.RFC3339), blocklistURL); err != nil {
|
||||
log.Fatalf("can't write signature line: %v", err)
|
||||
}
|
||||
|
||||
data, err := yaml.Marshal([]*Rule{result})
|
||||
if err != nil {
|
||||
log.Fatalf("can't marshal yaml")
|
||||
log.Fatalf("can't marshal yaml: %v", err)
|
||||
}
|
||||
|
||||
fout.Write(data)
|
||||
if _, err := fout.Write(data); err != nil {
|
||||
log.Fatalf("can't write data: %v", err)
|
||||
}
|
||||
|
||||
if err := fout.Close(); err != nil {
|
||||
log.Fatalf("can't close file: %v", err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user