mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
Merge pull request #83 from GiantTreeLP/fix/cloudflare-api-token-permissions
Fix API token permission issue with CloudFlare
This commit is contained in:
commit
cefae90569
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user