From 2c0dec18b5b9b2f879cc27307b495d4267e8cb03 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sun, 5 Sep 2021 11:09:20 +0100 Subject: [PATCH] added special handling for none security: remove duplicate --- infra/conf/v5cfg/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/conf/v5cfg/stream.go b/infra/conf/v5cfg/stream.go index 2add4e458..fa49b165a 100644 --- a/infra/conf/v5cfg/stream.go +++ b/infra/conf/v5cfg/stream.go @@ -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("{}") }