pull/4655/head
2dust 11 months ago
parent ee2a61bb61
commit 726d9d410f

@ -525,7 +525,6 @@ namespace v2rayN
} }
} }
/// <summary> /// <summary>
/// 获取启动了应用程序的可执行文件的路径 /// 获取启动了应用程序的可执行文件的路径
/// </summary> /// </summary>

@ -253,7 +253,7 @@ namespace v2rayN.Handler
public static int ImportOldGuiConfig(Config config, string fileName) public static int ImportOldGuiConfig(Config config, string fileName)
{ {
string result = Utils.LoadResource(fileName); var result = Utils.LoadResource(fileName);
if (Utils.IsNullOrEmpty(result)) if (Utils.IsNullOrEmpty(result))
{ {
return -1; return -1;

@ -721,11 +721,11 @@ namespace v2rayN.Handler
outbound.settings.userLevel = 0; outbound.settings.userLevel = 0;
} }
var obj = JsonUtils.ParseJson(normalDNS) ?? new JObject(); var obj = JsonUtils.ParseJson(normalDNS) ?? [];
if (!obj.ContainsKey("servers")) if (!obj.ContainsKey("servers"))
{ {
List<string> servers = new(); List<string> servers = [];
string[] arrDNS = normalDNS.Split(','); string[] arrDNS = normalDNS.Split(',');
foreach (string str in arrDNS) foreach (string str in arrDNS)
{ {

Loading…
Cancel
Save