From 5efd88b60c543a47c28ccadc32ce22ad1f438c35 Mon Sep 17 00:00:00 2001 From: He Houzhu <849513883@qq.com> Date: Mon, 13 Apr 2020 10:02:11 +0800 Subject: [PATCH 1/2] Update SSRController.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加ssr启动参数-t 600解决tcp过早超时导致的cod16掉线问题 --- Netch/Controllers/SSRController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Netch/Controllers/SSRController.cs b/Netch/Controllers/SSRController.cs index f363cb85..f091c22c 100644 --- a/Netch/Controllers/SSRController.cs +++ b/Netch/Controllers/SSRController.cs @@ -34,7 +34,7 @@ namespace Netch.Controllers Instance = MainController.GetProcess(); Instance.StartInfo.FileName = "bin\\ShadowsocksR.exe"; - Instance.StartInfo.Arguments = $"-s {server.Hostname} -p {server.Port} -k \"{server.Password}\" -m {server.EncryptMethod}"; + Instance.StartInfo.Arguments = $"-s {server.Hostname} -p {server.Port} -t 600 -k \"{server.Password}\" -m {server.EncryptMethod}"; if (!string.IsNullOrEmpty(server.Protocol)) { From fac28ca88b16c9aad673b88f171fff72ffbba9f6 Mon Sep 17 00:00:00 2001 From: Amazing_DM Date: Tue, 14 Apr 2020 10:13:59 +0800 Subject: [PATCH 2/2] Update SSRController.cs --- Netch/Controllers/SSRController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Netch/Controllers/SSRController.cs b/Netch/Controllers/SSRController.cs index f091c22c..9828a13b 100644 --- a/Netch/Controllers/SSRController.cs +++ b/Netch/Controllers/SSRController.cs @@ -34,7 +34,7 @@ namespace Netch.Controllers Instance = MainController.GetProcess(); Instance.StartInfo.FileName = "bin\\ShadowsocksR.exe"; - Instance.StartInfo.Arguments = $"-s {server.Hostname} -p {server.Port} -t 600 -k \"{server.Password}\" -m {server.EncryptMethod}"; + Instance.StartInfo.Arguments = $"-s {server.Hostname} -p {server.Port} -k \"{server.Password}\" -m {server.EncryptMethod} -t 600"; if (!string.IsNullOrEmpty(server.Protocol)) {