aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/mod_s2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-08-23 09:29:17 +0100
committerMatthew Wild <mwild1@gmail.com>2014-08-23 09:29:17 +0100
commit67e061cab521ceb6c22f3b91c57f78727701732a (patch)
tree205daf09b6f4e989fa855d46ed220c2b641c7ae2 /plugins/mod_s2s/mod_s2s.lua
parent443f33ae10d1230c9f0f78547ab73d1618fd44fe (diff)
downloadprosody-67e061cab521ceb6c22f3b91c57f78727701732a.tar.gz
prosody-67e061cab521ceb6c22f3b91c57f78727701732a.zip
mod_c2s, mod_s2s: Log received invalid stream headers
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index c288d858..44334428 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -407,6 +407,7 @@ end
function stream_callbacks.error(session, error, data)
if error == "no-stream" then
+ session.log("debug", "Invalid opening stream header (%s)", (data:gsub("^([^\1]+)\1", "{%1}")));
session:close("invalid-namespace");
elseif error == "parse-error" then
session.log("debug", "Server-to-server XML parse error: %s", tostring(error));