mirror of
https://github.com/fatedier/frp.git
synced 2025-07-27 07:35:07 +00:00
vendor update github.com/gorilla/websocket
This commit is contained in:
@@ -89,15 +89,10 @@ func NewHttpReverseProxy(option HttpReverseProxyOptions, vhostRouter *VhostRoute
|
||||
return rp.CreateConnection(host, url, remote)
|
||||
},
|
||||
},
|
||||
//WebSocketDialContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
|
||||
//url := ctx.Value("url").(string)
|
||||
//host := getHostFromAddr(ctx.Value("host").(string))
|
||||
//remote := ctx.Value("remote").(string)
|
||||
//return rp.CreateConnection(host, url, remote)
|
||||
//},
|
||||
BufferPool: newWrapPool(),
|
||||
ErrorLog: log.New(newWrapLogger(), "", 0),
|
||||
ErrorHandler: func(rw http.ResponseWriter, req *http.Request, err error) {
|
||||
frpLog.Warn("do http proxy request error: %v", err)
|
||||
rw.WriteHeader(http.StatusNotFound)
|
||||
rw.Write(getNotFoundPageContent())
|
||||
},
|
||||
|
Reference in New Issue
Block a user