stephb9959
2023-03-12 11:58:55 -07:00
parent 4c8e1fe1f5
commit c35f8e1664
2 changed files with 5 additions and 3 deletions

View File

@@ -614,7 +614,7 @@ namespace OpenWifi {
std::stringstream ParamStream;
Params.stringify(ParamStream);
Cmd.Details = ParamStream.str();
FileUploader()->AddUUID(CMD_UUID, 15min, "script_result");
FileUploader()->AddUUID(CMD_UUID, 15min, SCR.type == "shell" ? "txt" : "gzip" );
return RESTAPI_RPC::WaitForCommand(CMD_RPC, APCommands::Commands::script, false, Cmd,
Params, *Request, *Response, timeout, nullptr, this,
@@ -943,7 +943,7 @@ namespace OpenWifi {
Params.stringify(ParamStream);
Cmd.Details = ParamStream.str();
FileUploader()->AddUUID(CMD_UUID, 10min, "trace");
FileUploader()->AddUUID(CMD_UUID, 10min, "pcap");
return RESTAPI_RPC::WaitForCommand(CMD_RPC, APCommands::Commands::trace, false, Cmd,
Params, *Request, *Response, timeout, nullptr, this,
Logger_);