mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
ddns: remove ipv6 nameservers, support custom nameservers (#439)
This commit is contained in:
1 parent
714649df5e
commit
643c6dd3a1
10 files changed
+45
-3
No files matched your search
@@ -20,6 +20,7 @@ var (
|
||||
|
||||
func initDDNS() {
|
||||
OnDDNSUpdate()
|
||||
OnNameserverUpdate()
|
||||
}
|
||||
|
||||
func OnDDNSUpdate() {
|
||||
@@ -33,6 +34,10 @@ func OnDDNSUpdate() {
|
||||
}
|
||||
}
|
||||
|
||||
func OnNameserverUpdate() {
|
||||
ddns2.InitDNSServers(Conf.DNSServers)
|
||||
}
|
||||
|
||||
func GetDDNSProvidersFromProfiles(profileId []uint64, ip *ddns2.IP) ([]*ddns2.Provider, error) {
|
||||
profiles := make([]*model.DDNSProfile, 0, len(profileId))
|
||||
ddnsCacheLock.RLock()
|
||||
|
||||
Reference in new issue
Block a user