Explorar o código

added special handling for none security: remove duplicate

Shelikhoo %!s(int64=4) %!d(string=hai) anos
pai
achega
2c0dec18b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      infra/conf/v5cfg/stream.go

+ 1 - 1
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("{}")
 		}