Преглед на файлове

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

YuXinLong преди 1 година
родител
ревизия
0b1195e40d
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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 {