mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
fix: sni invalid on hysteria
This commit is contained in:
parent
ff7d896030
commit
d39783fe7e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user