Browse Source

add naiveproxy

pull/2295/head
2dust 3 years ago
parent
commit
c2ea14151e
  1. 1
      v2rayN/v2rayN/Forms/AddServer2Form.cs
  2. 1
      v2rayN/v2rayN/Global.cs
  3. 13
      v2rayN/v2rayN/Handler/LazyConfig.cs
  4. 1
      v2rayN/v2rayN/Mode/ECoreType.cs

1
v2rayN/v2rayN/Forms/AddServer2Form.cs

@ -22,6 +22,7 @@ namespace v2rayN.Forms
cmbCoreType.Items.Add("clash");
cmbCoreType.Items.Add("clash_meta");
cmbCoreType.Items.Add("hysteria");
cmbCoreType.Items.Add("naiveproxy");
cmbCoreType.Items.Add(string.Empty);
txtAddress.ReadOnly = true;

1
v2rayN/v2rayN/Global.cs

@ -17,6 +17,7 @@ namespace v2rayN
public const string clashCoreUrl = "https://github.com/Dreamacro/clash/releases";
public const string clashMetaCoreUrl = "https://github.com/MetaCubeX/Clash.Meta/releases";
public const string hysteriaCoreUrl = "https://github.com/HyNetwork/hysteria/releases";
public const string naiveproxyCoreUrl = "https://github.com/klzgrad/naiveproxy/releases";

13
v2rayN/v2rayN/Handler/LazyConfig.cs

@ -96,9 +96,8 @@ namespace v2rayN.Handler
{
coreType = ECoreType.clash_meta,
coreExes = new List<string> { "Clash.Meta-windows-amd64v1", "Clash.Meta-windows-amd64", "Clash.Meta-windows-386", "Clash.Meta", "clash" },
arguments = "-f config.yaml",
coreUrl = Global.clashMetaCoreUrl,
match = "Clash Meta"
arguments = "-f config.json",
coreUrl = Global.clashMetaCoreUrl
});
coreInfos.Add(new CoreInfo
@ -108,6 +107,14 @@ namespace v2rayN.Handler
arguments = "",
coreUrl = Global.hysteriaCoreUrl
});
coreInfos.Add(new CoreInfo
{
coreType = ECoreType.naiveproxy,
coreExes = new List<string> { "naiveproxy", "naive" },
arguments = "config.json",
coreUrl = Global.naiveproxyCoreUrl
});
}
}

1
v2rayN/v2rayN/Mode/ECoreType.cs

@ -8,6 +8,7 @@ namespace v2rayN.Mode
clash = 11,
clash_meta = 12,
hysteria = 21,
naiveproxy = 22,
v2rayN = 99
}
}

Loading…
Cancel
Save