Fix: server was timing out response from the proxy instead of the request from the client.

This commit is contained in:
notsure2 2020-04-04 16:39:50 +02:00 committed by Andy Wang
parent 850f45d66f
commit 35236b27d1
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ func dispatchConnection(conn net.Conn, sta *server.State) {
}
log.Tracef("%v endpoint has been successfully connected", ci.ProxyMethod)
go util.Pipe(localConn, newStream, 0)
go util.Pipe(newStream, localConn, sta.Timeout)
go util.Pipe(localConn, newStream, sta.Timeout)
go util.Pipe(newStream, localConn, 0)
}