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