Software /
code /
prosody-modules
Changeset
336:e4d5a1d3ff44
mod_srvinjection: Add support for a wildcard host.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 09 Feb 2011 16:35:53 +0500 |
parents | 335:8b81257c9dc5 |
children | 337:beb5073b866a |
files | mod_srvinjection/mod_srvinjection.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;