[FIX] req.CertificateID == "" -> req.CertificateID != ""

This commit is contained in:
GLYASAI 2018-11-29 11:51:19 +08:00
parent 22ea0a6ae0
commit 70bd323217

View File

@ -64,7 +64,7 @@ func (g *GatewayAction) AddHTTPRule(req *apimodel.AddHTTPRuleStruct) (string, er
return "", err
}
if req.CertificateID == "" {
if req.CertificateID != "" {
cert := &model.Certificate{
UUID: req.CertificateID,
CertificateName: fmt.Sprintf("cert-%s", util.NewUUID()[0:8]),