This commit is contained in:
7
main.go
7
main.go
@@ -24,7 +24,8 @@ import (
|
||||
// Redis + Context
|
||||
var ctx = context.Background()
|
||||
var rdb = redis.NewClient(&redis.Options{
|
||||
Addr: "flodredis:6379",
|
||||
Addr: "flodredis:6379",
|
||||
Password: os.Getenv("REDIS_PASS"),
|
||||
})
|
||||
|
||||
// ──────────────────────────────────────────────────────────────────────────────
|
||||
@@ -334,7 +335,7 @@ func handleCheck(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
var cats []string
|
||||
for a, _ := range blocklistURLs {
|
||||
for a := range blocklistURLs {
|
||||
cats = append(cats, a)
|
||||
}
|
||||
|
||||
@@ -373,7 +374,7 @@ func handleTraefik(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
var cats []string
|
||||
for a, _ := range blocklistURLs {
|
||||
for a := range blocklistURLs {
|
||||
cats = append(cats, a)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user