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);
|
var singboxConfig = JsonUtils.Deserialize<SingboxConfig>(txtFile);
|
||||||
if (singboxConfig == null)
|
if (singboxConfig == null)
|
||||||
{
|
{
|
||||||
msg = ResUI.FailedConversionConfiguration;
|
//msg = ResUI.FailedConversionConfiguration;
|
||||||
return -1;
|
//return -1;
|
||||||
|
File.Copy(addressFileName, fileName);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
GenExperimental(singboxConfig);
|
GenExperimental(singboxConfig);
|
||||||
JsonUtils.ToFile(singboxConfig, fileName, false);
|
JsonUtils.ToFile(singboxConfig, fileName, false);
|
||||||
|
}
|
||||||
|
|
||||||
//check again
|
//check again
|
||||||
if (!File.Exists(fileName))
|
if (!File.Exists(fileName))
|
||||||
|
|
Loading…
Reference in New Issue