Fix: buffer should be set even in unordered mode because in the end it's tcp

This commit is contained in:
notsure2 2023-12-21 23:28:57 +02:00
parent 2531e8cea5
commit 0f27e9e1e5
1 changed files with 19 additions and 21 deletions

View File

@ -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)
} }