mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
added special handling for none security: remove duplicate
This commit is contained in:
parent
8609a59322
commit
2c0dec18b5
@ -31,7 +31,7 @@ func (s StreamConfig) BuildV5(ctx context.Context) (proto.Message, error) {
|
||||
Settings: serial.ToTypedMessage(transportConfigPack),
|
||||
})
|
||||
|
||||
if s.Security != "none" && s.Security != "" {
|
||||
if s.Security != "none" {
|
||||
if s.SecuritySettings == nil {
|
||||
s.SecuritySettings = []byte("{}")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user