diff --git a/FinalCommander.go b/FinalCommander.go index b504f51..2d058c9 100644 --- a/FinalCommander.go +++ b/FinalCommander.go @@ -237,7 +237,7 @@ func handleHexHash(pathElements []string, ctx httputils.RequestContext, host str } func handle(ctx httputils.RequestContext) { - if len(ctx.GetRequestHeader("Host")) > 0 && ctx.GetRequestHeader("Host") == ctx.GetTLSServerName() { //Prevents rebinding / DNS stuff + if len(ctx.GetRequestHeader("Host")) > 0 && ctx.GetRequestHeader("Host") != ctx.GetTLSServerName() { //Prevents rebinding / DNS stuff ctx.SetResponseCode(http.StatusNotFound) return }