Added Hysteria2 support (using sing-box)

This commit is contained in:
2dust
2023-11-27 17:58:34 +08:00
parent 4a0902d4c8
commit 7037009ce4
17 changed files with 536 additions and 362 deletions
@@ -89,6 +89,7 @@ namespace v2rayN.ViewModels
public ReactiveCommand<Unit, Unit> AddShadowsocksServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddSocksServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddTrojanServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddHysteria2ServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddCustomServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddServerViaClipboardCmd { get; }
public ReactiveCommand<Unit, Unit> AddServerViaScanCmd { get; }
@@ -337,6 +338,10 @@ namespace v2rayN.ViewModels
{
EditServer(true, EConfigType.Trojan);
});
AddHysteria2ServerCmd = ReactiveCommand.Create(() =>
{
EditServer(true, EConfigType.Hysteria2);
});
AddCustomServerCmd = ReactiveCommand.Create(() =>
{
EditServer(true, EConfigType.Custom);