Changeset

314:ee5fc3ee9150

component: allow binding to non-host jids (thanks mva)
author Kim Alvefur <zash@zash.se>
date Fri, 31 Aug 2012 19:40:14 +0200
parents 313:d0d378f15d16
children 315:3742107e2505
files component.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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