From c4fbf66a9fb7b788d4880d4c5d5db4664f1a7b3f Mon Sep 17 00:00:00 2001 From: yzy613 Date: Tue, 28 Feb 2023 19:23:43 +0800 Subject: [PATCH] fix: bug --- internal/client/cloudflare.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client/cloudflare.go b/internal/client/cloudflare.go index 6def16c..c4d2b7c 100644 --- a/internal/client/cloudflare.go +++ b/internal/client/cloudflare.go @@ -88,7 +88,7 @@ func (cfc *Cloudflare) Run(enabled common.Enable, ipv4, ipv6 string) (msg []stri func (cfc *Cloudflare) getParseRecord(domain, recordType string) (domainId, recordIP string, err error) { httpClient := getGeneralHttpClient() url := "https://api.cloudflare.com/client/v4/zones/" + cfc.ZoneID + "/dns_records?name=" + domain - req, err := http.NewRequest("GET", url, nil) + req, err := http.NewRequest("GET", url, http.NoBody) if err != nil { return }