mirror of https://github.com/cbeuw/Cloak
Fix: buffer should be set even in unordered mode because in the end it's tcp
This commit is contained in:
parent
2531e8cea5
commit
0f27e9e1e5
|
|
@ -155,7 +155,6 @@ func main() {
|
||||||
var seshMaker func() *mux.Session
|
var seshMaker func() *mux.Session
|
||||||
|
|
||||||
control := func(network string, address string, rawConn syscall.RawConn) error {
|
control := func(network string, address string, rawConn syscall.RawConn) error {
|
||||||
if !authInfo.Unordered {
|
|
||||||
sendBufferSize := remoteConfig.TcpSendBuffer
|
sendBufferSize := remoteConfig.TcpSendBuffer
|
||||||
receiveBufferSize := remoteConfig.TcpReceiveBuffer
|
receiveBufferSize := remoteConfig.TcpReceiveBuffer
|
||||||
|
|
||||||
|
|
@ -179,7 +178,6 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return protector(network, address, rawConn)
|
return protector(network, address, rawConn)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue