mirror of
https://github.com/fatedier/frp.git
synced 2025-07-06 00:10:11 +07:00
improve not found response (#3121)
This commit is contained in:
@ -251,7 +251,7 @@ func (rp *HTTPReverseProxy) connectHandler(rw http.ResponseWriter, req *http.Req
|
||||
|
||||
remote, err := rp.CreateConnection(domain, url, routeByHTTPUser, remoteAddr)
|
||||
if err != nil {
|
||||
http.Error(rw, "Failed", http.StatusBadRequest)
|
||||
_ = notFoundResponse().Write(client)
|
||||
client.Close()
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user