Skip to content

Commit

Permalink
Enlarge local DNS timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed May 29, 2018
1 parent 16672a1 commit 2b3524d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ object LocalDnsService {
.put("MinimumTTL", 120)
.put("CacheSize", 4096)
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(
makeDns("Primary-1", "208.67.222.222:443", 3, false),
makeDns("Primary-2", "119.29.29.29:53", 3, false),
makeDns("Primary-3", "114.114.114.114:53", 3, false)
makeDns("Primary-1", "208.67.222.222:443", 9, false),
makeDns("Primary-2", "119.29.29.29:53", 9, false),
makeDns("Primary-3", "114.114.114.114:53", 9, false)
))

when (profile.route) {
Expand Down

0 comments on commit 2b3524d

Please sign in to comment.