nixos/modules/services/xray/disable-splice.patch

15 lines
462 B
Diff
Raw Normal View History

2024-06-14 15:50:55 +08:00
diff --git a/proxy/proxy.go b/proxy/proxy.go
index db92051..54d36b4 100644
2024-06-14 15:50:55 +08:00
--- a/proxy/proxy.go
+++ b/proxy/proxy.go
2024-06-24 19:09:22 +08:00
@@ -504,7 +504,8 @@ func CopyRawConnIfExist(ctx context.Context, readerConn net.Conn, writerConn net
splice = false
}
}
- if splice {
+ _ = splice
2024-06-24 19:09:22 +08:00
+ if false {
newError("CopyRawConn splice").WriteToLog(session.ExportIDToError(ctx))
statWriter, _ := writer.(*dispatcher.SizeStatWriter)
//runtime.Gosched() // necessary