mirror of https://github.com/cbeuw/Cloak
Fix: server was timing out response from the proxy instead of the request from the client.
This commit is contained in:
parent
850f45d66f
commit
35236b27d1
|
|
@ -183,8 +183,8 @@ func dispatchConnection(conn net.Conn, sta *server.State) {
|
||||||
}
|
}
|
||||||
log.Tracef("%v endpoint has been successfully connected", ci.ProxyMethod)
|
log.Tracef("%v endpoint has been successfully connected", ci.ProxyMethod)
|
||||||
|
|
||||||
go util.Pipe(localConn, newStream, 0)
|
go util.Pipe(localConn, newStream, sta.Timeout)
|
||||||
go util.Pipe(newStream, localConn, sta.Timeout)
|
go util.Pipe(newStream, localConn, 0)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue