Selaa lähdekoodia

cloudflareServer修改创建和更新证书绑定方法为force(测试机演示使用)

YuXinLong 1 vuosi sitten
vanhempi
commit
0b1195e40d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      server/CertificateCloudflareServer.go

+ 2 - 2
server/CertificateCloudflareServer.go

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