1
0
mirror of https://github.com/taigrr/godns synced 2026-03-20 16:02:42 -07:00

Merge pull request #83 from GiantTreeLP/fix/cloudflare-api-token-permissions

Fix API token permission issue with CloudFlare
This commit is contained in:
Timothy
2020-11-22 10:51:22 +08:00
committed by GitHub

View File

@@ -163,7 +163,7 @@ func (handler *Handler) getZone(domain string) string {
var z ZoneResponse
req, client := handler.newRequest("GET", "/zones", nil)
req, client := handler.newRequest("GET", fmt.Sprintf("/zones?name=%s", domain), nil)
resp, err := client.Do(req)
if err != nil {
log.Println("Request error:", err.Error())