add an error log for unauthorized container
This commit is contained in:
parent
3937b7cda5
commit
7bc9fa242e
@ -178,14 +178,9 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
}
|
||||
logDeniedRequest(r, http.StatusUnauthorized, "this container is not on the list of authorized ones")
|
||||
http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
|
||||
return
|
||||
/*
|
||||
if !authorized {
|
||||
http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
func logDeniedRequest(r *http.Request, statusCode int, message string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user