From 7c991413483d7081b59a7ef7d2f795ce196f496b Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sun, 22 Mar 2026 23:02:27 +0800 Subject: [PATCH] Fix edge case --- .../Services/CoreConfig/Singbox/SingboxOutboundService.cs | 5 +++++ .../Services/CoreConfig/V2ray/V2rayOutboundService.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs index 4d4bc04e..faa27671 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs @@ -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); diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs index 853ada7f..7061abdb 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs @@ -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);