Code clean

pull/4991/head
2dust 2024-04-10 13:32:50 +08:00
parent d961ea22a6
commit 315f4c35f0
6 changed files with 6 additions and 7 deletions

View File

@ -1186,4 +1186,4 @@ namespace v2rayN
#endregion Windows API
}
}
}

View File

@ -143,7 +143,7 @@ namespace v2rayN
{
{EConfigType.VMess,"vmess"},
{EConfigType.Shadowsocks,"shadowsocks"},
{EConfigType.Socks,"socks"},
{EConfigType.Socks,"socks"},
{EConfigType.Http,"http"},
{EConfigType.VLESS,"vless"},
{EConfigType.Trojan,"trojan"},

View File

@ -982,7 +982,7 @@ namespace v2rayN.Handler
break;
case nameof(ETransport.grpc):
item.requestHost = Utils.UrlDecode(query["authority"] ?? "");
item.requestHost = Utils.UrlDecode(query["authority"] ?? "");
item.path = Utils.UrlDecode(query["serviceName"] ?? "");
item.headerType = Utils.UrlDecode(query["mode"] ?? Global.GrpcGunMode);
break;

View File

@ -60,7 +60,7 @@
public List<string>? geoip { get; set; }
public List<string>? ip_cidr { get; set; }
public List<string>? source_ip_cidr { get; set; }
public List<string>? process_name { get; set; }
public List<string>? process_name { get; set; }
public List<string>? rule_set { get; set; }
}
@ -241,5 +241,4 @@
public string? url { get; set; }
public string? download_detour { get; set; }
}
}

View File

@ -80,7 +80,7 @@ namespace v2rayN.ViewModels
return;
}
}
if (SelectedSource.configType != EConfigType.Socks
if (SelectedSource.configType != EConfigType.Socks
&& SelectedSource.configType != EConfigType.Http)
{
if (Utils.IsNullOrEmpty(SelectedSource.id))

View File

@ -86,7 +86,7 @@ namespace v2rayN.ViewModels
public ReactiveCommand<Unit, Unit> AddVlessServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddShadowsocksServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddSocksServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddHttpServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddHttpServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddTrojanServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddHysteria2ServerCmd { get; }
public ReactiveCommand<Unit, Unit> AddTuicServerCmd { get; }