Update controller.go
This commit is contained in:
@@ -63,7 +63,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
if h.commonCfg.HostName != hostPort &&
|
if h.commonCfg.HostName != hostPort &&
|
||||||
!strings.HasPrefix(hostPort, h.hostNameChecker) {
|
!strings.HasPrefix(hostPort, h.hostNameChecker) {
|
||||||
clientLogger.Warning("Request invalid host \"%s\", deined",
|
clientLogger.Warning("Requested invalid host \"%s\", denied access",
|
||||||
r.Host)
|
r.Host)
|
||||||
|
|
||||||
serveFailure(
|
serveFailure(
|
||||||
|
|||||||
Reference in New Issue
Block a user