changeset 336 | e4d5a1d3ff44 |
parent 99 | 2d03350613c4 |
child 337 | beb5073b866a |
--- a/mod_srvinjection/mod_srvinjection.lua Sun Feb 06 05:05:49 2011 +0100 +++ b/mod_srvinjection/mod_srvinjection.lua Wed Feb 09 16:35:53 2011 +0500 @@ -26,7 +26,7 @@ function adns.lookup(handler, qname, qtype, qclass) if qtype == "SRV" then local host = qname:match("^_xmpp%-server%._tcp%.(.*)%.$"); - local mapping = map[host]; + local mapping = map[host] or mapping["*"]; if mapping then handler(mapping); return;