Fix possible issues with load balancing

https://github.com/2dust/v2rayN/issues/6429
This commit is contained in:
2dust
2025-01-05 14:49:53 +08:00
parent aae5906311
commit 5d4bd2fee6
3 changed files with 19 additions and 22 deletions
@@ -313,7 +313,7 @@ namespace ServiceLib.Services.CoreConfig
var outbound = JsonUtils.Deserialize<Outbound4Sbox>(txtOutbound);
await GenOutbound(item, outbound);
outbound.tag = $"{Global.ProxyTag}-{tagProxy.Count + 1}";
singboxConfig.outbounds.Add(outbound);
singboxConfig.outbounds.Insert(0, outbound);
tagProxy.Add(outbound.tag);
}
if (tagProxy.Count <= 0)