Only Report Blocked
All checks were successful
release-tag / release-image (push) Successful in 2m23s
All checks were successful
release-tag / release-image (push) Successful in 2m23s
This commit is contained in:
2
main.go
2
main.go
@@ -268,7 +268,7 @@ func authHandler(st *state) http.Handler {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if decide(st, ip) {
|
if decide(st, ip) {
|
||||||
log.Printf("Allowed: %s", ip)
|
//log.Printf("Allowed: %s", ip)
|
||||||
w.Header().Set("X-IPFilter-Client", ip.String())
|
w.Header().Set("X-IPFilter-Client", ip.String())
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
_, _ = w.Write([]byte("OK"))
|
_, _ = w.Write([]byte("OK"))
|
||||||
|
|||||||
Reference in New Issue
Block a user