From 730d2f239efd5bc9714e313f272cc44a7c7a9004 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 7 Dec 2023 13:44:35 +0000 Subject: [PATCH] use the timewindow settings for HTTP commands --- SecondBotEvents/Services/HttpService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SecondBotEvents/Services/HttpService.cs b/SecondBotEvents/Services/HttpService.cs index 05d7089..6cf0653 100644 --- a/SecondBotEvents/Services/HttpService.cs +++ b/SecondBotEvents/Services/HttpService.cs @@ -304,7 +304,8 @@ namespace SecondBotEvents.Services } SignedCommand C = new( master.CommandsService,"http", - commandName, signing, myArgs, cmdUnixtime, null, true, 5, master.CommandsService.myConfig.GetSharedSecret()); + commandName, signing, myArgs, cmdUnixtime, null,true, master.CommandsService.myConfig.GetTimeWindowSecs(), + master.CommandsService.myConfig.GetSharedSecret()); if(C.accepted == false) { return "Command request rejected";