dns: allow to switch dns server permanently (#97)

This commit is contained in:
nadoo committed 2020-05-02 20:02:19 +08:00
1 parent b99a730968
commit a9a1985a4b
5 files changed
+55 -19

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ func main() {
for _, r := range conf.rules {
for _, domain := range r.Domain {
if len(r.DNSServers) > 0 {
d.SetServers(domain, r.DNSServers...)
d.SetServers(domain, r.DNSServers)
}
}
}