diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs index faa27671..7937c26d 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs @@ -571,7 +571,7 @@ public partial class CoreConfigSingboxService for (var i = 0; i < nodes.Count; i++) { var node = nodes[i]; - var currentTag = $"{baseTagName}-{i + 1}"; + var currentTag = $"{baseTagName}-{i + 1}-{node.Remarks}"; if (nodes.Count == 1) { @@ -607,8 +607,8 @@ public partial class CoreConfigSingboxService for (var i = 0; i < nodesReverse.Count; i++) { var node = nodesReverse[i]; - var currentTag = i == 0 ? baseTagName : $"chain-{baseTagName}-{i}"; - var dialerProxyTag = i != nodesReverse.Count - 1 ? $"chain-{baseTagName}-{i + 1}" : null; + var currentTag = i == 0 ? baseTagName : $"chain-{baseTagName}-{i}-{node.Remarks}"; + var dialerProxyTag = i != nodesReverse.Count - 1 ? $"chain-{baseTagName}-{i + 1}-{node.Remarks}" : null; if (node.ConfigType.IsGroupType()) { var childProfiles = new CoreConfigSingboxService(context with { Node = node, }).BuildGroupProxyOutbounds(currentTag); diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxRoutingService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxRoutingService.cs index 7e1af389..01c32cc2 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxRoutingService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxRoutingService.cs @@ -494,7 +494,7 @@ public partial class CoreConfigSingboxService return Global.ProxyTag; } - var tag = $"{node.IndexId}-{Global.ProxyTag}"; + var tag = $"{node.IndexId}-{Global.ProxyTag}-{node.Remarks}"; if (_coreConfig.outbounds.Any(o => o.tag.StartsWith(tag)) || (_coreConfig.endpoints != null && _coreConfig.endpoints.Any(e => e.tag.StartsWith(tag)))) { diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs index 7061abdb..be0f3f2c 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs @@ -688,7 +688,7 @@ public partial class CoreConfigV2rayService for (var i = 0; i < nodes.Count; i++) { var node = nodes[i]; - var currentTag = $"{baseTagName}-{i + 1}"; + var currentTag = $"{baseTagName}-{i + 1}-{node.Remarks}"; if (nodes.Count == 1) { @@ -724,8 +724,8 @@ public partial class CoreConfigV2rayService for (var i = 0; i < nodesReverse.Count; i++) { var node = nodesReverse[i]; - var currentTag = i == 0 ? baseTagName : $"chain-{baseTagName}-{i}"; - var dialerProxyTag = i != nodesReverse.Count - 1 ? $"chain-{baseTagName}-{i + 1}" : null; + var currentTag = i == 0 ? baseTagName : $"chain-{baseTagName}-{i}-{node.Remarks}"; + var dialerProxyTag = i != nodesReverse.Count - 1 ? $"chain-{baseTagName}-{i + 1}-{node.Remarks}" : null; if (node.ConfigType.IsGroupType()) { var childProfiles = new CoreConfigV2rayService(context with { Node = node, }).BuildGroupProxyOutbounds(currentTag); diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs index 76969297..dd752a68 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs @@ -164,7 +164,7 @@ public partial class CoreConfigV2rayService return Global.ProxyTag; } - var tag = $"{node.IndexId}-{Global.ProxyTag}"; + var tag = $"{node.IndexId}-{Global.ProxyTag}-{node.Remarks}"; if (_coreConfig.outbounds.Any(p => p.tag.StartsWith(tag))) { return tag;