From 2f250c55691acab7a453c0060e3e1832f3931d69 Mon Sep 17 00:00:00 2001 From: chika0801 <88967758+chika0801@users.noreply.github.com> Date: Mon, 19 Sep 2022 22:54:05 +0800 Subject: [PATCH 1/3] add sing-box support --- v2rayN/v2rayN/Global.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/v2rayN/v2rayN/Global.cs b/v2rayN/v2rayN/Global.cs index 88a677e3..52bf04f9 100644 --- a/v2rayN/v2rayN/Global.cs +++ b/v2rayN/v2rayN/Global.cs @@ -20,6 +20,7 @@ namespace v2rayN public const string hysteriaCoreUrl = "https://github.com/HyNetwork/hysteria/releases"; public const string naiveproxyCoreUrl = "https://github.com/klzgrad/naiveproxy/releases"; public const string tuicCoreUrl = "https://github.com/EAimTY/tuic/releases"; + public const string sing-boxCoreUrl = "https://github.com/SagerNet/sing-box/releases"; public const string geoUrl = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/{0}.dat"; From 55a8b9085edf5f262191d8720973ed9f562dbc5b Mon Sep 17 00:00:00 2001 From: chika0801 <88967758+chika0801@users.noreply.github.com> Date: Mon, 19 Sep 2022 22:56:15 +0800 Subject: [PATCH 2/3] add sing-box support --- v2rayN/v2rayN/Handler/LazyConfig.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/v2rayN/v2rayN/Handler/LazyConfig.cs b/v2rayN/v2rayN/Handler/LazyConfig.cs index b26f9dea..2c42d0c8 100644 --- a/v2rayN/v2rayN/Handler/LazyConfig.cs +++ b/v2rayN/v2rayN/Handler/LazyConfig.cs @@ -181,6 +181,14 @@ namespace v2rayN.Handler arguments = "-c config.json", coreUrl = Global.tuicCoreUrl }); + + coreInfos.Add(new CoreInfo + { + coreType = ECoreType.sing-box, + coreExes = new List { "sing-box-client", "sing-box" }, + arguments = "-c config.json", + coreUrl = Global.sing-boxCoreUrl + }); } } From 28ba47a2f50560ab5f6591e6cc918b09d5bf0d6b Mon Sep 17 00:00:00 2001 From: chika0801 <88967758+chika0801@users.noreply.github.com> Date: Mon, 19 Sep 2022 22:57:15 +0800 Subject: [PATCH 3/3] add sing-box support --- v2rayN/v2rayN/Mode/ECoreType.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/v2rayN/v2rayN/Mode/ECoreType.cs b/v2rayN/v2rayN/Mode/ECoreType.cs index be3946ff..b66abba9 100644 --- a/v2rayN/v2rayN/Mode/ECoreType.cs +++ b/v2rayN/v2rayN/Mode/ECoreType.cs @@ -12,6 +12,7 @@ namespace v2rayN.Mode hysteria = 21, naiveproxy = 22, tuic = 23, + sing-box = 24, v2rayN = 99 } }