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:
parent
179d6568fc
commit
e7232a5064
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user