projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35b3234
)
net.dns: Add nicer API to cached records
author
Kim Alvefur
<zash@zash.se>
Tue, 7 May 2013 14:51:25 +0000
(16:51 +0200)
committer
Kim Alvefur
<zash@zash.se>
Tue, 7 May 2013 14:51:25 +0000
(16:51 +0200)
net/dns.lua
patch
|
blob
|
history
diff --git
a/net/dns.lua
b/net/dns.lua
index c9c51fe8afd470e5f95cf745669e53f839fea5da..89b50255811b606af3ff2a53e0a91312bbe5e974 100644
(file)
--- 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