use the timewindow settings for HTTP commands

This commit is contained in:
Madpeter 2023-12-07 13:44:35 +00:00
parent bf53e8249c
commit 730d2f239e

View file

@ -304,7 +304,8 @@ namespace SecondBotEvents.Services
} }
SignedCommand C = new( SignedCommand C = new(
master.CommandsService,"http", 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) if(C.accepted == false)
{ {
return "Command request rejected"; return "Command request rejected";