edit nodes config,api,checks,dash

This commit is contained in:
Konstantin Pichugin 2026-01-06 03:23:43 +03:00
parent 37906b7312
commit 3d3ad2358e

View file

@ -552,7 +552,14 @@ func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string {
externalProxies, _ := stream["externalProxy"].([]any) externalProxies, _ := stream["externalProxy"].([]any)
// Generate links for each node address (or external proxy) // 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 // First, handle external proxies if any
if len(externalProxies) > 0 { if len(externalProxies) > 0 {