Software /
code /
prosody-modules
Diff
mod_portcheck/mod_portcheck.lua @ 4899:adecfb36349e
mod_portcheck: Include '*' in allowed characters so '*:port' works
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 19 Feb 2022 01:42:12 +0100 |
parent | 4897:42a362a2bf51 |
child | 4901:3abbcb8584d2 |
line wrap: on
line diff
--- a/mod_portcheck/mod_portcheck.lua Fri Feb 18 23:40:41 2022 +0100 +++ b/mod_portcheck/mod_portcheck.lua Sat Feb 19 01:42:12 2022 +0100 @@ -4,7 +4,7 @@ local commands = module:shared("admin_shell/commands") function commands.portcheck(session, line) - for desc, interface, port in line:gmatch("%s(%[?([%x:.]+)%]?:(%d+))") do + for desc, interface, port in line:gmatch("%s(%[?([%x:.*]+)%]?:(%d+))") do if interface == "*" then interface = "0.0.0.0"; end