From 2f083731c8d793d1687e1d6c5083766d23db4fdf Mon Sep 17 00:00:00 2001 From: mzz <2017@duck.com> Date: Tue, 14 May 2024 11:29:39 +0800 Subject: [PATCH] fix: disable gso on client by default (#165) --- cmd/client/run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/client/run.go b/cmd/client/run.go index 56340ca..f7133e5 100644 --- a/cmd/client/run.go +++ b/cmd/client/run.go @@ -37,6 +37,10 @@ var ( Use: "run", Short: "To run juicity-client in the foreground.", Run: func(cmd *cobra.Command, args []string) { + // TODO: Some users reported that enabling GSO on the client would affect the performance of watching YouTube, so we disabled it by default. + if _, ok := os.LookupEnv("QUIC_GO_DISABLE_GSO"); !ok { + os.Setenv("QUIC_GO_DISABLE_GSO", "1") + } arguments := shared.GetArguments() // Config. conf, err := arguments.GetConfig()