diff options
author | Kim Alvefur <zash@zash.se> | 2013-05-07 16:51:25 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-05-07 16:51:25 +0200 |
commit | 694d42d322e1f695d3692d07d65894f231cb7fb9 (patch) | |
tree | 5a12ab511941fa57fbfe5beb1b57b2eda6e2856d /net/dns.lua | |
parent | d960ec8fb793d6d789f79535b3680c869e9bba54 (diff) | |
download | prosody-694d42d322e1f695d3692d07d65894f231cb7fb9.tar.gz prosody-694d42d322e1f695d3692d07d65894f231cb7fb9.zip |
net.dns: Add nicer API to cached records
Diffstat (limited to 'net/dns.lua')
-rw-r--r-- | net/dns.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua index c9c51fe8..89b50255 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -1072,6 +1072,10 @@ function dns.settimeout(...) return _resolver:settimeout(...); end +function dns.cache() + return _resolver.cache; +end + function dns.socket_wrapper_set(...) -- - - - - - - - - socket_wrapper_set return _resolver:socket_wrapper_set(...); end |