This commit is contained in:
5
main.go
5
main.go
@@ -24,7 +24,7 @@ import (
|
||||
// Redis + Context
|
||||
var ctx = context.Background()
|
||||
var rdb = redis.NewClient(&redis.Options{
|
||||
Addr: "redis:6379",
|
||||
Addr: "10.10.5.249:6379",
|
||||
})
|
||||
|
||||
// ──────────────────────────────────────────────────────────────────────────────
|
||||
@@ -713,7 +713,7 @@ func importBlocklists() error {
|
||||
if err := fetchAndSave(client, t, "./lists/"); err != nil {
|
||||
log.Printf("ERROR %s → %v", t.URL, err)
|
||||
}
|
||||
blocklistURLs, _ = ImportListJSON("./lists/")
|
||||
blocklistURLs, _ = ImportListJSON("./lists/lists.json")
|
||||
|
||||
var wg sync.WaitGroup
|
||||
errCh := make(chan error, len(blocklistURLs))
|
||||
@@ -739,6 +739,7 @@ func importBlocklists() error {
|
||||
return fmt.Errorf("Blocklisten-Import teilweise fehlgeschlagen")
|
||||
}
|
||||
fmt.Println("✅ Blocklisten-Import abgeschlossen")
|
||||
fmt.Println(blocklistURLs)
|
||||
blocklistURLs["flodpod"] = "null"
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user