# HG changeset patch # User Kim Alvefur # Date 1645231332 -3600 # Node ID adecfb36349e84d23747db422d7b76e394709356 # Parent 999e7cb7f6d9aff5cc995685291ed5d0b1d39339 mod_portcheck: Include '*' in allowed characters so '*:port' works diff -r 999e7cb7f6d9 -r adecfb36349e mod_portcheck/mod_portcheck.lua --- 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