mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-04 00:23:43 +08:00
fix: sni invalid on hysteria
This commit is contained in:
parent
099aa1e3c2
commit
8853e97b40
@ -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…
x
Reference in New Issue
Block a user