mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
ddns: retreive dns servers from context (#1034)
This commit is contained in:
@@ -34,8 +34,6 @@ func NewDDNSClass() *DDNSClass {
|
||||
sortedList: sortedList,
|
||||
},
|
||||
}
|
||||
|
||||
OnNameserverUpdate()
|
||||
return dc
|
||||
}
|
||||
|
||||
@@ -107,7 +105,3 @@ func (c *DDNSClass) sortList() {
|
||||
defer c.sortedListMu.Unlock()
|
||||
c.sortedList = sortedList
|
||||
}
|
||||
|
||||
func OnNameserverUpdate() {
|
||||
ddns2.InitDNSServers(Conf.DNSServers)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user