1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00

fix security settings

This commit is contained in:
Shelikhoo 2021-09-05 16:29:45 +01:00
parent 179d6568fc
commit e7232a5064
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -39,8 +39,9 @@ func (s StreamConfig) BuildV5(ctx context.Context) (proto.Message, error) {
if err != nil {
return nil, newError("unable to load security config").Base(err)
}
config.SecurityType = s.Security
config.SecuritySettings = append(config.SecuritySettings, serial.ToTypedMessage(securityConfigPack))
securityConfigPackTypedMessage := serial.ToTypedMessage(securityConfigPack)
config.SecurityType = serial.V2Type(securityConfigPackTypedMessage)
config.SecuritySettings = append(config.SecuritySettings, securityConfigPackTypedMessage)
}
config.SocketSettings, err = s.SocketSettings.Build()