Add Trojan Support

This commit is contained in:
Connection Refused
2020-05-08 15:53:19 +08:00
parent 92d1cfdb50
commit 9149f23986
9 changed files with 5504 additions and 1 deletions

View File

@@ -40,6 +40,11 @@ namespace Netch.Controllers
/// </summary>
public VMessController pVMessController;
/// <summary>
/// Trojan 控制器
/// </summary>
public TrojanController pTrojanController;
/// <summary>
/// NF 控制器
/// </summary>
@@ -108,6 +113,14 @@ namespace Netch.Controllers
}
result = pVMessController.Start(server, mode);
break;
case "Trojan":
KillProcess("Trojan");
if (pTrojanController == null)
{
pTrojanController = new TrojanController();
}
result = pTrojanController.Start(server, mode);
break;
}
if (result)