net.http: Add log messages for requests, including their id (so "calling callback...
[prosody.git] / plugins / mod_admin_adhoc.lua
index b616355951cb60b96c7a1c64b74ae334d967a875..392e715e3b8954fd80a22e119811ae9ec56a29a7 100644 (file)
@@ -390,7 +390,7 @@ local function session_flags(session, line)
                flags[#flags+1] = "encrypted";
        end
        if session.compressed then
-               flags[#flags+1] = "compressed)";
+               flags[#flags+1] = "compressed";
        end
        if session.smacks then
                flags[#flags+1] = "sm";
@@ -422,7 +422,7 @@ local function list_s2s_this_handler(self, data, state)
                local sess_lines = { r = remotehost,
                        session_flags(session, { "", direction, remotehost or "?" })};
 
-               if remotehost:match(module_host) or localhost:match(module_host) then
+               if localhost == module_host then
                        s2s_list[#s2s_list+1] = sess_lines;
                end
        end
@@ -614,6 +614,7 @@ end, function(fields, err)
 end);
 
 local function send_to_online(message, server)
+       local sessions;
        if server then
                sessions = { [server] = hosts[server] };
        else