mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
ddns: remove ipv6 nameservers, support custom nameservers (#439)
This commit is contained in:
@@ -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