Skip to content

Commit

Permalink
remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Sep 11, 2024
1 parent 262a6b5 commit cfe71bb
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions core/src/main/golang/native/app/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ import (
)

func NotifyDnsChanged(dnsList string) {
dL := strings.Split(dnsList, ",")

ns := make([]dns.NameServer, 0, len(dnsList))
for _, d := range dL {
ns = append(ns, dns.NameServer{Addr: d})
}

dns.UpdateSystemDNS(dL)
dns.UpdateSystemDNS(strings.Split(dnsList, ","))
dns.FlushCacheWithDefaultResolver()
}

0 comments on commit cfe71bb

Please sign in to comment.