projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5759ae0
)
net.dns: Support for parsing PTR records
author
Matthew Wild
<mwild1@gmail.com>
Tue, 5 Oct 2010 23:13:24 +0000
(
00:13
+0100)
committer
Matthew Wild
<mwild1@gmail.com>
Tue, 5 Oct 2010 23:13:24 +0000
(
00:13
+0100)
net/dns.lua
patch
|
blob
|
history
diff --git
a/net/dns.lua
b/net/dns.lua
index 41a0c536c5baf742666ada3c95a812e7bdeb4f51..29d9cf36d227a52df80b9e4ae75a730e094b4e2c 100644
(file)
--- a/
net/dns.lua
+++ b/
net/dns.lua
@@
-438,6
+438,9
@@
function resolver:SRV(rr) -- - - - - - - - - - - - - - - - - - - - - - SRV
rr.srv.target = self:name();
end
+function resolver:PTR(rr)
+ rr.ptr = self:name();
+end
function SRV_tostring(rr) -- - - - - - - - - - - - - - - - - - SRV_tostring
local s = rr.srv;