fix: download servername override

This commit is contained in:
wwqgtxx committed 2026-03-31 16:17:23 +08:00
1 parent 3a3a5b6f46
commit c36090adda
1 file changed
+2 -2
+2 -2
View File
@@ -594,8 +594,8 @@ func NewVless(option VlessOption) (*Vless, error) {
tlsOpts.NextProtos = []string{"h2"}
}
if v.option.ServerName != "" {
tlsOpts.Host = v.option.ServerName
if downloadServerName != "" {
tlsOpts.Host = downloadServerName
}
return vmess.StreamTLSConn(ctx, conn, &tlsOpts)