From b9b076629d8a34689256d0d921809e7b70dc8c72 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 22 Sep 2021 19:24:31 -0500 Subject: [PATCH] Allow web-register in two-stage as well Command execution is normally two stage, execute, response, then submit. We had a hack here that allowed submitting the form directly, but this allows a blind two-stage client to also at least work. --- sgx_jmp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index fc40b3871747e12b9b0f48d58f91115710880695..baab3df4da9762b2bfe5b526a4a42297b8b9a984 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -536,7 +536,7 @@ Command.new( end }.register(self).then(&CommandList.method(:register)) -command :execute?, node: "web-register", sessionid: nil do |iq| +command :execute?, node: "web-register" do |iq| StatsD.increment("command", tags: ["node:#{iq.node}"]) sentry_hub = new_sentry_hub(iq, name: iq.node)