From ac56dfbadb6c1d12c55efed76053c0524bc294c2 Mon Sep 17 00:00:00 2001 From: Alexandre Oliveira Date: Tue, 6 Sep 2022 15:02:20 +0200 Subject: [PATCH] Map APIToken to api_token in JSON config See https://github.com/caddy-dns/vultr/issues/7 --- provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider.go b/provider.go index 559aaa1..f4ae1ed 100644 --- a/provider.go +++ b/provider.go @@ -14,7 +14,7 @@ type Provider struct { client Client // APIToken is the Vultr API token // see https://my.vultr.com/settings/#settingsapi - APIToken string `json:"auth_token"` + APIToken string `json:"api_token,omitempty"` } // unFQDN trims any trailing "." from fqdn.