mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
ddns: support provider hurricane electric (#1036)
This commit is contained in:
1 parent
49c68f0da4
commit
ea3739cf1c
6 files changed
+15
-4
No files matched your search
@@ -6,6 +6,7 @@ import (
|
||||
"slices"
|
||||
|
||||
"github.com/libdns/cloudflare"
|
||||
"github.com/libdns/he"
|
||||
tencentcloud "github.com/nezhahq/libdns-tencentcloud"
|
||||
|
||||
"github.com/nezhahq/nezha/model"
|
||||
@@ -85,6 +86,9 @@ func (c *DDNSClass) GetDDNSProvidersFromProfiles(profileId []uint64, ip *model.I
|
||||
case model.ProviderTencentCloud:
|
||||
provider.Setter = &tencentcloud.Provider{SecretId: profile.AccessID, SecretKey: profile.AccessSecret}
|
||||
providers = append(providers, provider)
|
||||
case model.ProviderHE:
|
||||
provider.Setter = &he.Provider{APIKey: profile.AccessSecret}
|
||||
providers = append(providers, provider)
|
||||
default:
|
||||
return nil, fmt.Errorf("无法找到配置的DDNS提供者 %s", profile.Provider)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user