Skip to content

Commit cfe71bb

Browse files
committed
remove unneeded code
1 parent 262a6b5 commit cfe71bb

File tree

1 file changed

+1
-9
lines changed
  • core/src/main/golang/native/app

1 file changed

+1
-9
lines changed

core/src/main/golang/native/app/dns.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ import (
77
)
88

99
func NotifyDnsChanged(dnsList string) {
10-
dL := strings.Split(dnsList, ",")
11-
12-
ns := make([]dns.NameServer, 0, len(dnsList))
13-
for _, d := range dL {
14-
ns = append(ns, dns.NameServer{Addr: d})
15-
}
16-
17-
dns.UpdateSystemDNS(dL)
10+
dns.UpdateSystemDNS(strings.Split(dnsList, ","))
1811
dns.FlushCacheWithDefaultResolver()
1912
}
20-

0 commit comments

Comments
 (0)