mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-16 11:32:17 +08:00
fix dnsList handle
This commit is contained in:
parent
7b828ee0d9
commit
b7e4ff551a
|
@ -7,6 +7,10 @@ import (
|
|||
)
|
||||
|
||||
func NotifyDnsChanged(dnsList string) {
|
||||
dns.UpdateSystemDNS(strings.Split(dnsList, ","))
|
||||
var addr []string
|
||||
if len(dnsList) > 0 {
|
||||
addr = strings.Split(dnsList, ",")
|
||||
}
|
||||
dns.UpdateSystemDNS(addr)
|
||||
dns.FlushCacheWithDefaultResolver()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user