mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-10-13 19:49:12 +00:00
Update subService.go
add one more node vless key in sub
This commit is contained in:
parent
b65ec83c39
commit
564f288411
1 changed files with 6 additions and 0 deletions
|
@ -78,6 +78,8 @@ func (s *SubService) GetSubs(subId string, host string) ([]string, int64, xray.C
|
||||||
if client.Enable && client.SubID == subId {
|
if client.Enable && client.SubID == subId {
|
||||||
link := s.getLink(inbound, client.Email)
|
link := s.getLink(inbound, client.Email)
|
||||||
result = append(result, link)
|
result = append(result, link)
|
||||||
|
copiedLink := s.createModifiedLink(link, "77.239.104.148", "apple.com")
|
||||||
|
result = append(result, copiedLink)
|
||||||
ct := s.getClientTraffics(inbound.ClientStats, client.Email)
|
ct := s.getClientTraffics(inbound.ClientStats, client.Email)
|
||||||
clientTraffics = append(clientTraffics, ct)
|
clientTraffics = append(clientTraffics, ct)
|
||||||
if ct.LastOnline > lastOnline {
|
if ct.LastOnline > lastOnline {
|
||||||
|
@ -109,6 +111,10 @@ func (s *SubService) GetSubs(subId string, host string) ([]string, int64, xray.C
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fixedLink := "vless://ваш-uuid@ваш-домен.com:443?encryption=none&security=tls&type=ws&host=ваш-домен.com&path=%2Ffixed-path#Fixed-Profile"
|
||||||
|
result = append(result, fixedLink)
|
||||||
|
|
||||||
return result, lastOnline, traffic, nil
|
return result, lastOnline, traffic, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue