Skip to content

Commit

Permalink
Close #268: Add a 1 second delay before sending a response to an auth…
Browse files Browse the repository at this point in the history
…entication request to prevent brute force attacks (#269)
  • Loading branch information
TheSomeMan authored Nov 17, 2023
1 parent c0681a9 commit aa11e6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http_server_handle_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ http_server_handle_req_post_with_ecdh_key(
{
str_buf_free_buf(&decrypted_str_buf);
}
vTaskDelay(pdMS_TO_TICKS(1000));
return resp;
}

Expand Down

0 comments on commit aa11e6e

Please sign in to comment.