Mercurial > prosody-modules
diff mod_srvinjection/mod_srvinjection.lua @ 1325:b21236b6b8d8
Backed out changeset 853a382c9bd6
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 28 Feb 2014 15:37:55 +0100 |
parents | 853a382c9bd6 |
children | 47fb4f36dacd |
line wrap: on
line diff
--- a/mod_srvinjection/mod_srvinjection.lua Fri Feb 28 15:36:06 2014 +0100 +++ b/mod_srvinjection/mod_srvinjection.lua Fri Feb 28 15:37:55 2014 +0100 @@ -1,4 +1,3 @@ -local s = require"util.serialization".new"oneline".serialize; module:set_global(); @@ -26,12 +25,8 @@ local original_lookup = adns.lookup; function adns.lookup(handler, qname, qtype, qclass) - module:log("debug", "adns.lookup(%s, %s, %s)", s(qname), s(qtype), s(qclass)); if qtype == "SRV" then local host = qname:match("^_xmpp%-server%._tcp%.(.*)%.$"); - module:log("debug", "qname:match(...) → %s", s(host)); - local mapping = map[host] or map["*"]; - module:log("debug", "map[%s] → %s", s(host), s(mapping)); local mapping = map[host] or map["*"]; if mapping then handler(mapping);