diff --git a/adapter/outbound/hysteria.go b/adapter/outbound/hysteria.go index 49a77cf0..56e0f3fa 100644 --- a/adapter/outbound/hysteria.go +++ b/adapter/outbound/hysteria.go @@ -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,