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
parent 2327420f75
commit 08446d6a14
1 changed files with 2 additions and 2 deletions

View File

@ -182,8 +182,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)
}