Browse Source

opt: CF证书上传时的绑定方法字段修改为ubiquitous(通用的)

liufan 1 month ago
parent
commit
04224ce898
1 changed files with 2 additions and 2 deletions
  1. 2 2
      server/CertificateCloudflareServer.go

+ 2 - 2
server/CertificateCloudflareServer.go

@@ -51,7 +51,7 @@ func (s *CertificateServer) CreateCertificate(ctx context.Context, requestCloudf
 	zoneCustomSSL.Certificate = requestCloudflare.GetCertificate()
 	zoneCustomSSL.Certificate = requestCloudflare.GetCertificate()
 	zoneCustomSSL.PrivateKey = requestCloudflare.GetPrivateKey()
 	zoneCustomSSL.PrivateKey = requestCloudflare.GetPrivateKey()
 	zoneCustomSSL.GeoRestrictions = &geoRestrictions
 	zoneCustomSSL.GeoRestrictions = &geoRestrictions
-	zoneCustomSSL.BundleMethod = "force"
+	zoneCustomSSL.BundleMethod = "ubiquitous"
 	zoneCustomSSL.Type = "sni_custom"
 	zoneCustomSSL.Type = "sni_custom"
 	createCertificate, err := api.CreateSSL(ctxAPI, id, zoneCustomSSL)
 	createCertificate, err := api.CreateSSL(ctxAPI, id, zoneCustomSSL)
 
 
@@ -103,7 +103,7 @@ func (s *CertificateServer) EditCertificate(ctx context.Context, requestCloudfla
 	zoneCustomSSL.Certificate = requestCloudflare.GetCertificate()
 	zoneCustomSSL.Certificate = requestCloudflare.GetCertificate()
 	zoneCustomSSL.PrivateKey = requestCloudflare.GetPrivateKey()
 	zoneCustomSSL.PrivateKey = requestCloudflare.GetPrivateKey()
 	zoneCustomSSL.GeoRestrictions = &geoRestrictions
 	zoneCustomSSL.GeoRestrictions = &geoRestrictions
-	zoneCustomSSL.BundleMethod = "force"
+	zoneCustomSSL.BundleMethod = "ubiquitous"
 	zoneCustomSSL.Type = "sni_custom"
 	zoneCustomSSL.Type = "sni_custom"
 	editCertificate, err := api.UpdateSSL(ctxAPI, id, requestCloudflare.GetCertificateId(), zoneCustomSSL)
 	editCertificate, err := api.UpdateSSL(ctxAPI, id, requestCloudflare.GetCertificateId(), zoneCustomSSL)
 	if err != nil {
 	if err != nil {