fix: sni invalid on hysteria

This commit is contained in:
gVisor bot 2022-06-12 00:00:42 +08:00
parent ff7d896030
commit d39783fe7e

View File

@ -121,7 +121,7 @@ func NewHysteria(option HysteriaOption) (*Hysteria, error) {
addr := net.JoinHostPort(option.Server, strconv.Itoa(option.Port))
serverName := option.Server
if option.SNI != "" {
serverName = option.Server
serverName = option.SNI
}
tlsConfig := &tls.Config{
ServerName: serverName,