Преглед изворни кода

added special handling for none security: remove duplicate

Shelikhoo пре 4 година
родитељ
комит
2c0dec18b5
1 измењених фајлова са 1 додато и 1 уклоњено
  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("{}")
 		}