From 8853e97b40ad673b6ed66e1cd3438af9403b3be2 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Sun, 12 Jun 2022 00:00:42 +0800 Subject: [PATCH] fix: sni invalid on hysteria --- adapter/outbound/hysteria.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,