feat: ddns 模块 dnspod 类型实装

This commit is contained in:
Mmx233
2023-01-02 03:16:14 +08:00
parent f665015089
commit 48ffd91741
3 changed files with 7 additions and 4 deletions

View File

@@ -15,9 +15,9 @@ type DnsProvider struct {
Token string `mapstructure:"token"`
}
func New(ttl uint, conf map[string]interface{}, Http *http.Client) (*DnsProvider, error) {
func New(ttl int, conf map[string]interface{}, Http *http.Client) (*DnsProvider, error) {
var p = DnsProvider{
TTL: int(ttl),
TTL: ttl,
}
e := dnsUtil.DecodeConfig(conf, &p)
if e != nil {