Allow SGX with a node
Stephen Paul Weber
created
This is not common, but if that's what the config says we shouldn't erase the node.
Change summary
lib/backend_sgx.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Detailed changes
@@ -36,7 +36,10 @@ class BackendSgx
def stanza(s)
s.dup.tap do |stanza|
- stanza.to = stanza.to.with(domain: jid.domain)
+ stanza.to = stanza.to.with(
+ domain: jid.domain,
+ node: jid.node || stanza.to.node
+ )
stanza.from = from_jid.with(resource: stanza.from.resource)
end
end