Map APIToken to api_token in JSON config

See https://github.com/caddy-dns/vultr/issues/7
This commit is contained in:
Alexandre Oliveira 2022-09-06 15:02:20 +02:00
parent cd4cb5c12e
commit ac56dfbadb

View File

@ -14,7 +14,7 @@ type Provider struct {
client Client client Client
// APIToken is the Vultr API token // APIToken is the Vultr API token
// see https://my.vultr.com/settings/#settingsapi // see https://my.vultr.com/settings/#settingsapi
APIToken string `json:"auth_token"` APIToken string `json:"api_token,omitempty"`
} }
// unFQDN trims any trailing "." from fqdn. // unFQDN trims any trailing "." from fqdn.