mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 14:16:47 +00:00
fix: download servername override
This commit is contained in:
1 parent
3a3a5b6f46
commit
c36090adda
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user