Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Apr 5, 2024
1 parent dc3f07e commit dff12a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions v2rayN/v2rayN/ViewModels/RoutingRuleSettingViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,14 @@ public void RuleExportSelected()
return;
}

var lst = new List<RulesItem>();
var lst = new List<RulesItem4Ray>();
foreach (var it in SelectedSources)
{
var item = _rules.FirstOrDefault(t => t.id == it?.id);
if (item != null)
{
lst.Add(item);
var item2 = JsonUtils.Deserialize<RulesItem4Ray>(JsonUtils.Serialize(item));
lst.Add(item2 ?? new());
}
}
if (lst.Count > 0)
Expand Down

0 comments on commit dff12a8

Please sign in to comment.