This commit is contained in:
parent
4bc524dd78
commit
eb3194b0a0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue