diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-24 15:01:25 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-24 15:01:25 +0300 |
| commit | bf248389399fc6f82855f788cfae2be882407a0a (patch) | |
| tree | 2353d352cff63344ac35592c0436ea3492003b78 /web/service | |
| parent | 16e3107d23b4bc536d509c2dd832d10366fb895e (diff) | |
remove useless
Diffstat (limited to 'web/service')
| -rw-r--r-- | web/service/sub.go | 6 |
1 files changed, 0 insertions, 6 deletions
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) } |
