Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Jul 30, 2024
1 parent 6500c8d commit 32ffd43
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions v2rayN/v2rayN/Handler/CoreConfig/CoreConfigSingbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,15 @@ public int GenerateClientCustomConfig(ProfileItem node, string? fileName, out st
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))
Expand Down

0 comments on commit 32ffd43

Please sign in to comment.