merge upstream, improve geoip pkg

This commit is contained in:
uubulb
2024-10-31 03:34:25 +08:00
7 changed files with 31 additions and 42 deletions

View File

@@ -6,7 +6,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"
@@ -76,6 +76,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)
}
}