Revert "Remove V2Ray support"

This reverts commit c235713c1b.
This commit is contained in:
Connection Refused
2020-02-09 22:23:55 +08:00
committed by Tindy X
parent c235713c1b
commit 7fe227bb49
11 changed files with 6105 additions and 3 deletions

View File

@@ -30,6 +30,11 @@ namespace Netch.Controllers
/// </summary>
public SSRController pSSRController;
/// <summary>
/// V2Ray 控制器
/// </summary>
public VMessController pVMessController;
/// <summary>
/// NF 控制器
/// </summary>
@@ -83,6 +88,14 @@ namespace Netch.Controllers
}
result = pSSRController.Start(server, mode);
break;
case "VMess":
KillProcess("v2ray");
if (pVMessController == null)
{
pVMessController = new VMessController();
}
result = pVMessController.Start(server, mode);
break;
}
if (result)
@@ -154,6 +167,10 @@ namespace Netch.Controllers
{
pSSRController.Stop();
}
else if (pVMessController != null)
{
pVMessController.Stop();
}
if (pNFController != null)
{