瀏覽代碼

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