From 02d83285fef67306a3763e794c9a1227f8246cab Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 24 Jan 2023 10:41:54 -0500 Subject: [PATCH] Allow SGX with a node This is not common, but if that's what the config says we shouldn't erase the node. --- lib/backend_sgx.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/backend_sgx.rb b/lib/backend_sgx.rb index 9ae4d40ed093a7e3ed27465f7cfb0eeb3a43b4a5..a0c53b844870f91372ea6e9b455ac868fc5f0279 100644 --- a/lib/backend_sgx.rb +++ b/lib/backend_sgx.rb @@ -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