mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-24 21:59:19 +02:00
fix [ log ]: small fix for better readability.
This commit is contained in:
parent
dd16dcec03
commit
c85a91bc29
|
@ -39,12 +39,12 @@ var upgrader = &websocket.Upgrader{
|
||||||
|
|
||||||
func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
|
func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
|
||||||
if len(h.host) > 0 && request.Host != h.host {
|
if len(h.host) > 0 && request.Host != h.host {
|
||||||
newError("failed to validate host, request:", request.Host, "config:", h.host).WriteToLog()
|
newError("failed to validate host, request:", request.Host, ", config:", h.host).WriteToLog()
|
||||||
writer.WriteHeader(http.StatusNotFound)
|
writer.WriteHeader(http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if request.URL.Path != h.path {
|
if request.URL.Path != h.path {
|
||||||
newError("failed to validate path, request:", request.URL.Path, "config:", h.path).WriteToLog()
|
newError("failed to validate path, request:", request.URL.Path, ", config:", h.path).WriteToLog()
|
||||||
writer.WriteHeader(http.StatusNotFound)
|
writer.WriteHeader(http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue