ddns: retreive dns servers from context (#1034)

This commit is contained in:
UUBulb
2025-03-17 23:11:40 +08:00
committed by GitHub
parent c3ec52e392
commit 38c2374bad
5 changed files with 17 additions and 21 deletions

View File

@@ -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)
}