diff --git a/v2rayN/v2rayN/Global.cs b/v2rayN/v2rayN/Global.cs index 5c296639..4af96a07 100644 --- a/v2rayN/v2rayN/Global.cs +++ b/v2rayN/v2rayN/Global.cs @@ -22,6 +22,7 @@ public const string geoUrl = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/{0}.dat"; public const string singboxGeoUrl = "https://github.com/soffchen/sing-{0}/releases/latest/download/{0}.db"; public const string SpeedPingTestUrl = @"https://www.google.com/generate_204"; + public const string juicityCoreUrl = "https://github.com/juicity/juicity/releases"; public const string CustomRoutingListUrl = @"https://raw.githubusercontent.com/2dust/v2rayCustomRoutingList/master/"; public const string PromotionUrl = @"aHR0cHM6Ly85LjIzNDQ1Ni54eXovYWJjLmh0bWw="; @@ -170,4 +171,4 @@ #endregion global variable } -} \ No newline at end of file +} diff --git a/v2rayN/v2rayN/Handler/LazyConfig.cs b/v2rayN/v2rayN/Handler/LazyConfig.cs index 1bf629f1..08f416c0 100644 --- a/v2rayN/v2rayN/Handler/LazyConfig.cs +++ b/v2rayN/v2rayN/Handler/LazyConfig.cs @@ -353,8 +353,16 @@ namespace v2rayN.Handler match = "sing-box", versionArg = "version", }); + + coreInfos.Add(new CoreInfo + { + coreType = ECoreType.juicity, + coreExes = new List { "juicity-client", "juicity" }, + arguments = "-c config.json", + coreUrl = Global.juicityCoreUrl + }); } #endregion Core Type } -} \ No newline at end of file +} diff --git a/v2rayN/v2rayN/Mode/ECoreType.cs b/v2rayN/v2rayN/Mode/ECoreType.cs index 930ee512..2f20ed0b 100644 --- a/v2rayN/v2rayN/Mode/ECoreType.cs +++ b/v2rayN/v2rayN/Mode/ECoreType.cs @@ -12,6 +12,7 @@ naiveproxy = 22, tuic = 23, sing_box = 24, + juicity = 25, v2rayN = 99 } -} \ No newline at end of file +}