From 93d52bc86c4725fdfbdb629e87bbb5d24abf7d37 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Sun, 11 Aug 2024 00:47:44 +0200 Subject: new - vmess security (inbound client side - outbound) --- sub/subService.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sub/subService.go') diff --git a/sub/subService.go b/sub/subService.go index 0ee18129..2f5b2f98 100644 --- a/sub/subService.go +++ b/sub/subService.go @@ -168,7 +168,7 @@ func (s *SubService) getLink(inbound *model.Inbound, email string) string { } func (s *SubService) genVmessLink(inbound *model.Inbound, email string) string { - if inbound.Protocol != model.VMess { + if inbound.Protocol != model.VMESS { return "" } obj := map[string]interface{}{ @@ -281,6 +281,7 @@ func (s *SubService) genVmessLink(inbound *model.Inbound, email string) string { } } obj["id"] = clients[clientIndex].ID + obj["scy"] = clients[clientIndex].Security externalProxies, _ := stream["externalProxy"].([]interface{}) -- cgit v1.2.3