aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-19 22:05:44 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-19 22:05:44 +0000
commit093c9c9fa0e01bee0db0f5866ae19b0278057ea5 (patch)
treef367854d34293aa77eede7f7145e40e8eeb5aca6 /core
parentdd6a298f93413ec919c8f467438009b63e187b51 (diff)
downloadprosody-093c9c9fa0e01bee0db0f5866ae19b0278057ea5.tar.gz
prosody-093c9c9fa0e01bee0db0f5866ae19b0278057ea5.zip
Send version=1.0 again in s2s stream header
Diffstat (limited to 'core')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 2370e437..4188e26b 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -160,7 +160,7 @@ function streamopened(session, attr)
session.streamid = uuid_gen();
print(session, session.from_host, "incoming s2s stream opened");
send("<?xml version='1.0'?>");
- send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host }):top_tag());
+ send(stanza("stream:stream", { version = '1.0', xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host }):top_tag());
if session.to_host and not hosts[session.to_host] then
-- Attempting to connect to a host we don't serve
session:close("host-unknown");