From 14c5b9242348c2e33d4f0b4ec52f136f7bd9c059 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Mon, 23 Mar 2026 01:11:33 +0000 Subject: [PATCH] Fix edge case (#8979) --- .../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);