Merge pull request #2640 from chika0801/master

add sing-box support
pull/2654/head
2dust 2022-09-20 20:04:15 +08:00 committed by GitHub
commit c3526ebfa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -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";

View File

@ -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<string> { "sing-box-client", "sing-box" },
arguments = "-c config.json",
coreUrl = Global.sing-boxCoreUrl
});
}
}

View File

@ -12,6 +12,7 @@ namespace v2rayN.Mode
hysteria = 21,
naiveproxy = 22,
tuic = 23,
sing-box = 24,
v2rayN = 99
}
}