mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-01-13 09:12:44 +00:00
edit nodes config,api,checks,dash
This commit is contained in:
parent
09c5c05691
commit
37906b7312
1 changed files with 5 additions and 14 deletions
|
|
@ -552,8 +552,7 @@ 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 := ""
|
links := make([]string, 0)
|
||||||
linkIndex := 0
|
|
||||||
|
|
||||||
// First, handle external proxies if any
|
// First, handle external proxies if any
|
||||||
if len(externalProxies) > 0 {
|
if len(externalProxies) > 0 {
|
||||||
|
|
@ -583,13 +582,9 @@ func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string {
|
||||||
|
|
||||||
url.Fragment = s.genRemark(inbound, email, ep["remark"].(string))
|
url.Fragment = s.genRemark(inbound, email, ep["remark"].(string))
|
||||||
|
|
||||||
if linkIndex > 0 {
|
links = append(links, url.String())
|
||||||
links += "\n"
|
|
||||||
}
|
}
|
||||||
links += url.String()
|
return strings.Join(links, "\n")
|
||||||
linkIndex++
|
|
||||||
}
|
|
||||||
return links
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate links for each node address
|
// Generate links for each node address
|
||||||
|
|
@ -607,14 +602,10 @@ func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string {
|
||||||
|
|
||||||
url.Fragment = s.genRemark(inbound, email, "")
|
url.Fragment = s.genRemark(inbound, email, "")
|
||||||
|
|
||||||
if linkIndex > 0 {
|
links = append(links, url.String())
|
||||||
links += "\n"
|
|
||||||
}
|
|
||||||
links += url.String()
|
|
||||||
linkIndex++
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return links
|
return strings.Join(links, "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SubService) genTrojanLink(inbound *model.Inbound, email string) string {
|
func (s *SubService) genTrojanLink(inbound *model.Inbound, email string) string {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue