mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-19 08:04:40 +03:00
Fix edge case (#8979)
This commit is contained in:
@@ -573,6 +573,11 @@ public partial class CoreConfigSingboxService
|
||||
var node = nodes[i];
|
||||
var currentTag = $"{baseTagName}-{i + 1}";
|
||||
|
||||
if (nodes.Count == 1)
|
||||
{
|
||||
currentTag = baseTagName;
|
||||
}
|
||||
|
||||
if (node.ConfigType.IsGroupType())
|
||||
{
|
||||
var childProfiles = new CoreConfigSingboxService(context with { Node = node, }).BuildGroupProxyOutbounds(currentTag);
|
||||
|
||||
@@ -690,6 +690,11 @@ public partial class CoreConfigV2rayService
|
||||
var node = nodes[i];
|
||||
var currentTag = $"{baseTagName}-{i + 1}";
|
||||
|
||||
if (nodes.Count == 1)
|
||||
{
|
||||
currentTag = baseTagName;
|
||||
}
|
||||
|
||||
if (node.ConfigType.IsGroupType())
|
||||
{
|
||||
var childProfiles = new CoreConfigV2rayService(context with { Node = node, }).BuildGroupProxyOutbounds(currentTag);
|
||||
|
||||
Reference in New Issue
Block a user