mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-05 10:19:45 +05:00
Bug fix
This commit is contained in:
@@ -389,12 +389,12 @@ namespace v2rayN.Handler.CoreConfig
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (node.address == Global.CoreMultipleLoadConfigFileName)
|
||||
{
|
||||
var txtFile = File.ReadAllText(addressFileName);
|
||||
var singboxConfig = JsonUtils.Deserialize<SingboxConfig>(txtFile);
|
||||
if (singboxConfig == null)
|
||||
{
|
||||
//msg = ResUI.FailedConversionConfiguration;
|
||||
//return -1;
|
||||
File.Copy(addressFileName, fileName);
|
||||
}
|
||||
else
|
||||
@@ -403,6 +403,11 @@ namespace v2rayN.Handler.CoreConfig
|
||||
GenExperimental(singboxConfig);
|
||||
JsonUtils.ToFile(singboxConfig, fileName, false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
File.Copy(addressFileName, fileName);
|
||||
}
|
||||
|
||||
//check again
|
||||
if (!File.Exists(fileName))
|
||||
|
||||
Reference in New Issue
Block a user