diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-06-28 12:02:10 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-06-28 12:02:10 +0100 |
commit | fb5059547f3171087410344fcf0bffcb8f5f1433 (patch) | |
tree | 019f7e1a98d3803df4cbb5d1b497d3000a82d537 | |
parent | fb6356059181107d3d285088abe05dc20d4e8e8f (diff) | |
download | prosody-fb5059547f3171087410344fcf0bffcb8f5f1433.tar.gz prosody-fb5059547f3171087410344fcf0bffcb8f5f1433.zip |
net.dns: Disable jitter for default resolver (used by blocking dns.lookup() calls)
This fixes 'prosodyctl check dns' being slow.
-rw-r--r-- | net/dns.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua index 18cf51d6..17119152 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -1191,6 +1191,7 @@ end local _resolver = dns.resolver(); dns._resolver = _resolver; +_resolver.jitter, _resolver.retry_jitter = false, false; function dns.lookup(...) -- - - - - - - - - - - - - - - - - - - - - lookup return _resolver:lookup(...); |