component.lua

changeset 314
ee5fc3ee9150
parent 282
52b971d9ebc3
child 400
0db9cb909cf1
--- a/component.lua	Mon Aug 27 00:18:53 2012 +0200
+++ b/component.lua	Fri Aug 31 19:40:14 2012 +0200
@@ -123,7 +123,7 @@
 
 function stream:reopen()
 	self:reset();
-	self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams',
+	self:send(st.stanza("stream:stream", { to = self.jid, ["xmlns:stream"]='http://etherx.jabber.org/streams',
 		xmlns = xmlns_component, version = "1.0" }):top_tag());
 end
 

mercurial