support proxy protocol

This commit is contained in:
fatedier
2019-03-29 19:01:18 +08:00
parent 74a8752570
commit 9c4ec56491
13 changed files with 98 additions and 26 deletions

View File

@ -98,7 +98,7 @@ func (pxy *HttpProxy) GetConf() config.ProxyConf {
}
func (pxy *HttpProxy) GetRealConn() (workConn frpNet.Conn, err error) {
tmpConn, errRet := pxy.GetWorkConnFromPool()
tmpConn, errRet := pxy.GetWorkConnFromPool(nil, nil)
if errRet != nil {
err = errRet
return