Software /
code /
prosody
Changeset
5566:74ae3e7e8779
net.dns: Add nicer API to cached records
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 07 May 2013 16:51:25 +0200 |
parents | 5565:6dd806829226 |
children | 5567:c4ab25b35a55 |
files | net/dns.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/dns.lua Tue May 07 10:42:44 2013 -0400 +++ b/net/dns.lua Tue May 07 16:51:25 2013 +0200 @@ -1072,6 +1072,10 @@ 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