From 30e0c89dd6fb9942c005e170f25d3e3e2d0cd050 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Fri, 27 Jan 2023 21:57:35 -0500 Subject: [PATCH] Only return command list for bare domain --- sgx_jmp.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index 0015e76722ca9a752f4c8768381a19b8c1ddadb4..789986001a7c9a9a2df6c8a4a739581644db6e2c 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -429,7 +429,10 @@ disco_info do |iq| self << reply end -disco_items node: "http://jabber.org/protocol/commands" do |iq| +disco_items( + to: Blather::JID.new(CONFIG[:component][:jid]), + node: "http://jabber.org/protocol/commands" +) do |iq| StatsD.increment("command_list") reply = iq.reply