fix: cloudflare update performance
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"github.com/Mmx233/BitSrunLoginGo/internal/dns/cloudflare"
|
||||
"github.com/Mmx233/BitSrunLoginGo/internal/dns/dnspod"
|
||||
"github.com/Mmx233/BitSrunLoginGo/internal/dns/dynv6"
|
||||
"github.com/Mmx233/BitSrunLoginGo/internal/dns/pubyun"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
@@ -32,6 +33,8 @@ func Run(c *Config) error {
|
||||
dns, err = dnspod.New(uint64(c.TTL), c.Conf.DnsPod, c.Http.Transport)
|
||||
case "dynv6":
|
||||
dns, err = dynv6.New(c.Domain, c.Conf.Token, c.IP)
|
||||
case "pubyun":
|
||||
dns, err = pubyun.New(c.Conf.Zone, c.Conf.Token)
|
||||
default:
|
||||
var msg string
|
||||
if c.Provider == "" {
|
||||
|
||||
Reference in New Issue
Block a user