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