mirror of https://github.com/2dust/v2rayN
parent
6500c8d85e
commit
32ffd43fe3
|
@ -393,12 +393,15 @@ namespace v2rayN.Handler.CoreConfig
|
|||
var singboxConfig = JsonUtils.Deserialize<SingboxConfig>(txtFile);
|
||||
if (singboxConfig == null)
|
||||
{
|
||||
msg = ResUI.FailedConversionConfiguration;
|
||||
return -1;
|
||||
//msg = ResUI.FailedConversionConfiguration;
|
||||
//return -1;
|
||||
File.Copy(addressFileName, fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
GenExperimental(singboxConfig);
|
||||
JsonUtils.ToFile(singboxConfig, fileName, false);
|
||||
}
|
||||
|
||||
GenExperimental(singboxConfig);
|
||||
JsonUtils.ToFile(singboxConfig, fileName, false);
|
||||
|
||||
//check again
|
||||
if (!File.Exists(fileName))
|
||||
|
|
Loading…
Reference in New Issue