Fix: tls server name missing in vmess

This commit is contained in:
Dreamacro
2018-11-28 23:24:57 +08:00
parent a64cea5011
commit dc24dd4d89
2 changed files with 9 additions and 4 deletions

View File

@ -75,7 +75,8 @@ func NewVmess(option VmessOption) (*Vmess, error) {
AlterID: uint16(option.AlterID),
Security: security,
TLS: option.TLS,
Host: net.JoinHostPort(option.Server, strconv.Itoa(option.Port)),
HostName: option.Server,
Port: strconv.Itoa(option.Port),
NetWork: option.Network,
WebSocketPath: option.WSPath,
SkipCertVerify: option.SkipCertVerify,