From bf248389399fc6f82855f788cfae2be882407a0a Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 24 Apr 2023 15:31:25 +0330 Subject: remove useless --- web/service/sub.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'web/service') diff --git a/web/service/sub.go b/web/service/sub.go index 5a0cfff6..263b15c3 100644 --- a/web/service/sub.go +++ b/web/service/sub.go @@ -352,9 +352,6 @@ func (s *SubService) genVlessLink(inbound *model.Inbound, email string) string { xtlsSettings, _ := searchKey(xtlsSetting, "settings") if xtlsSetting != nil { - if sniValue, ok := searchKey(xtlsSettings, "serverName"); ok { - params["sni"], _ = sniValue.(string) - } if fpValue, ok := searchKey(xtlsSettings, "fingerprint"); ok { params["fp"], _ = fpValue.(string) } @@ -529,9 +526,6 @@ func (s *SubService) genTrojanLink(inbound *model.Inbound, email string) string xtlsSettings, _ := searchKey(xtlsSetting, "settings") if xtlsSetting != nil { - if sniValue, ok := searchKey(xtlsSettings, "serverName"); ok { - params["sni"], _ = sniValue.(string) - } if fpValue, ok := searchKey(xtlsSettings, "fingerprint"); ok { params["fp"], _ = fpValue.(string) } -- cgit v1.2.3