mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 11:18:08 +08:00
[FIX] req.CertificateID == "" -> req.CertificateID != ""
This commit is contained in:
parent
22ea0a6ae0
commit
70bd323217
@ -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]),
|
||||
|
Loading…
Reference in New Issue
Block a user