# HG changeset patch # User Kim Alvefur # Date 1346434814 -7200 # Node ID ee5fc3ee9150f7a1cc3188a1825f8d1bea247aaf # Parent d0d378f15d16cdb82ee30ec818b399c116cd1aa0 component: allow binding to non-host jids (thanks mva) diff -r d0d378f15d16 -r ee5fc3ee9150 component.lua --- 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