Bug fix
This commit is contained in:
@@ -389,19 +389,24 @@ namespace v2rayN.Handler.CoreConfig
|
||||
return -1;
|
||||
}
|
||||
|
||||
var txtFile = File.ReadAllText(addressFileName);
|
||||
var singboxConfig = JsonUtils.Deserialize<SingboxConfig>(txtFile);
|
||||
if (singboxConfig == null)
|
||||
if (node.address == Global.CoreMultipleLoadConfigFileName)
|
||||
{
|
||||
//msg = ResUI.FailedConversionConfiguration;
|
||||
//return -1;
|
||||
File.Copy(addressFileName, fileName);
|
||||
var txtFile = File.ReadAllText(addressFileName);
|
||||
var singboxConfig = JsonUtils.Deserialize<SingboxConfig>(txtFile);
|
||||
if (singboxConfig == null)
|
||||
{
|
||||
File.Copy(addressFileName, fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
GenInbounds(singboxConfig);
|
||||
GenExperimental(singboxConfig);
|
||||
JsonUtils.ToFile(singboxConfig, fileName, false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GenInbounds(singboxConfig);
|
||||
GenExperimental(singboxConfig);
|
||||
JsonUtils.ToFile(singboxConfig, fileName, false);
|
||||
File.Copy(addressFileName, fileName);
|
||||
}
|
||||
|
||||
//check again
|
||||
|
||||
Reference in New Issue
Block a user