Fri, 31 Aug 2012 19:40:14 +0200
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