diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-01-04 09:09:15 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-01-04 09:09:15 +0000 |
commit | 6a39c2064ccd3956857494208013e95515c3d6fd (patch) | |
tree | dee56adb63417f62c3f2ae5a05fa108f05122f73 | |
parent | 6d5bf3651160efa69fb89bd2f92b11f7d69f4034 (diff) | |
parent | dc21fd08f46d714de6f8b8318b3c3ee212e97e2f (diff) | |
download | prosody-6a39c2064ccd3956857494208013e95515c3d6fd.tar.gz prosody-6a39c2064ccd3956857494208013e95515c3d6fd.zip |
Merge 0.10->trunk
-rw-r--r-- | net/server_select.lua | 5 | ||||
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index ced73074..4df6e12d 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -580,8 +580,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport coroutine_yield( ) -- handshake not finished end end - out_put( "server.lua: ssl handshake error: ", tostring(err or "handshake too long") ) - _ = handler and handler:force_close("ssl handshake failed") + err = "ssl handshake error: " .. ( err or "handshake too long" ); + out_put( "server.lua: ", err ); + _ = handler and handler:force_close(err) return false, err -- handshake failed end ) diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index fdbdf462..392e715e 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -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 |