mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Update Jsonv5 configuration
This commit is contained in:
@@ -13,6 +13,7 @@ public static class V2rayConfigUtils
|
||||
{
|
||||
inbounds = new object[]
|
||||
{
|
||||
// https://www.v2fly.org/en_US/v5/config/proxy/socks.html
|
||||
new
|
||||
{
|
||||
port = Global.Settings.Socks5LocalPort,
|
||||
@@ -20,7 +21,8 @@ public static class V2rayConfigUtils
|
||||
listen = Global.Settings.LocalAddress,
|
||||
settings = new
|
||||
{
|
||||
udp = true
|
||||
udpEnabled = true,
|
||||
packetEncoding = Global.Settings.V2RayConfig.XrayCone ? "packet" : "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ public class V2rayController : Guard, IServerController
|
||||
{
|
||||
public V2rayController() : base("v2ray-sn.exe")
|
||||
{
|
||||
if (!Global.Settings.V2RayConfig.XrayCone)
|
||||
Instance.StartInfo.Environment["XRAY_CONE_DISABLED"] = "true";
|
||||
//if (!Global.Settings.V2RayConfig.XrayCone)
|
||||
// Instance.StartInfo.Environment["XRAY_CONE_DISABLED"] = "true";
|
||||
}
|
||||
|
||||
protected override IEnumerable<string> StartedKeywords => new[] { "started" };
|
||||
|
||||
Reference in New Issue
Block a user