Commit 2b3524df authored by Max Lv's avatar Max Lv

Enlarge local DNS timeout

parent 16672a1d
...@@ -62,11 +62,11 @@ object LocalDnsService { ...@@ -62,11 +62,11 @@ object LocalDnsService {
.put("MinimumTTL", 120) .put("MinimumTTL", 120)
.put("CacheSize", 4096) .put("CacheSize", 4096)
val remoteDns = JSONArray(profile.remoteDns.split(",") val remoteDns = JSONArray(profile.remoteDns.split(",")
.mapIndexed { i, dns -> makeDns("UserDef-$i", dns.trim() + ":53", 9) }) .mapIndexed { i, dns -> makeDns("UserDef-$i", dns.trim() + ":53", 12) })
val localDns = JSONArray(arrayOf( val localDns = JSONArray(arrayOf(
makeDns("Primary-1", "208.67.222.222:443", 3, false), makeDns("Primary-1", "208.67.222.222:443", 9, false),
makeDns("Primary-2", "119.29.29.29:53", 3, false), makeDns("Primary-2", "119.29.29.29:53", 9, false),
makeDns("Primary-3", "114.114.114.114:53", 3, false) makeDns("Primary-3", "114.114.114.114:53", 9, false)
)) ))
when (profile.route) { when (profile.route) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment