mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-01-13 01:02:46 +00:00
edit nodes config,api,checks,dash
This commit is contained in:
parent
37906b7312
commit
3d3ad2358e
1 changed files with 8 additions and 1 deletions
|
|
@ -552,7 +552,14 @@ func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string {
|
|||
externalProxies, _ := stream["externalProxy"].([]any)
|
||||
|
||||
// Generate links for each node address (or external proxy)
|
||||
links := make([]string, 0)
|
||||
// Pre-allocate capacity based on external proxies or node addresses
|
||||
var initialCapacity int
|
||||
if len(externalProxies) > 0 {
|
||||
initialCapacity = len(externalProxies)
|
||||
} else {
|
||||
initialCapacity = len(nodeAddresses)
|
||||
}
|
||||
links := make([]string, 0, initialCapacity)
|
||||
|
||||
// First, handle external proxies if any
|
||||
if len(externalProxies) > 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue