fix: sni invalid on hysteria
This commit is contained in:
parent
099aa1e3c2
commit
8853e97b40
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ func NewHysteria(option HysteriaOption) (*Hysteria, error) {
|
||||||
addr := net.JoinHostPort(option.Server, strconv.Itoa(option.Port))
|
addr := net.JoinHostPort(option.Server, strconv.Itoa(option.Port))
|
||||||
serverName := option.Server
|
serverName := option.Server
|
||||||
if option.SNI != "" {
|
if option.SNI != "" {
|
||||||
serverName = option.Server
|
serverName = option.SNI
|
||||||
}
|
}
|
||||||
tlsConfig := &tls.Config{
|
tlsConfig := &tls.Config{
|
||||||
ServerName: serverName,
|
ServerName: serverName,
|
||||||
|
|
Loading…
Reference in a new issue