mirror of
https://github.com/2dust/v2rayN.git
synced 2026-03-30 12:07:40 +00:00
Fix edge case (#8979)
This commit is contained in:
parent
74e5ead1ed
commit
14c5b92423
2 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue