component: allow binding to non-host jids (thanks mva)

Fri, 31 Aug 2012 19:40:14 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 31 Aug 2012 19:40:14 +0200
changeset 314
ee5fc3ee9150
parent 313
d0d378f15d16
child 315
3742107e2505

component: allow binding to non-host jids (thanks mva)

component.lua file | annotate | diff | comparison | revisions
--- 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