Changeset

4901:3abbcb8584d2

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
author Kim Alvefur <zash@zash.se>
date Tue, 22 Feb 2022 14:00:01 +0100
parents 4900:cc5ac0f0f32d
children 4902:ed9aa80c989d
files mod_portcheck/mod_portcheck.lua
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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";