mod_portcheck: Don't rewrite '*' to '0.0.0.0' since Prosody doesn't
authorKim Alvefur <zash@zash.se>
Tue, 22 Feb 2022 14:00:01 +0100
changeset 4905 3abbcb8584d2
parent 4904 cc5ac0f0f32d
child 4906 ed9aa80c989d
mod_portcheck: Don't rewrite '*' to '0.0.0.0' since Prosody doesn't They mean the same, but it's LuaSocket that deals with that, not Prosody
mod_portcheck/mod_portcheck.lua
--- a/mod_portcheck/mod_portcheck.lua	Sun Feb 20 11:49:06 2022 +0100
+++ b/mod_portcheck/mod_portcheck.lua	Tue Feb 22 14:00:01 2022 +0100
@@ -5,9 +5,6 @@
 
 function commands.portcheck(session, line)
 	for desc, interface, port in line:gmatch("%s(%[?([%x:.*]+)%]?:(%d+))") do
-		if interface == "*" then
-			interface = "0.0.0.0";
-		end
 		assert(portmanager.get_service_at(interface, tonumber(port)), desc);
 	end
 	session.print "OK";