ddns: replace tencentcloud implemention (#462)

This commit is contained in:
UUBulb
2024-10-29 21:39:45 +08:00
committed by GitHub
parent 67b003a27d
commit a474b8484b
3 changed files with 9 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ import (
"sync"
"github.com/libdns/cloudflare"
"github.com/libdns/tencentcloud"
tencentcloud "github.com/nezhahq/libdns-tencentcloud"
"github.com/naiba/nezha/model"
ddns2 "github.com/naiba/nezha/pkg/ddns"
@@ -45,6 +45,7 @@ func GetDDNSProvidersFromProfiles(profileId []uint64, ip *ddns2.IP) ([]*ddns2.Pr
if profile, ok := ddnsCache[id]; ok {
profiles = append(profiles, profile)
} else {
ddnsCacheLock.RUnlock()
return nil, fmt.Errorf("无法找到DDNS配置 ID %d", id)
}
}