We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b828ee commit b7e4ff5Copy full SHA for b7e4ff5
core/src/main/golang/native/app/dns.go
@@ -7,6 +7,10 @@ import (
7
)
8
9
func NotifyDnsChanged(dnsList string) {
10
- dns.UpdateSystemDNS(strings.Split(dnsList, ","))
+ var addr []string
11
+ if len(dnsList) > 0 {
12
+ addr = strings.Split(dnsList, ",")
13
+ }
14
+ dns.UpdateSystemDNS(addr)
15
dns.FlushCacheWithDefaultResolver()
16
}
0 commit comments