diff --git a/core/src/main/golang/native/app/dns.go b/core/src/main/golang/native/app/dns.go index d0c81f19..285ade09 100644 --- a/core/src/main/golang/native/app/dns.go +++ b/core/src/main/golang/native/app/dns.go @@ -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() } -