Skip to content

Commit

Permalink
Fix: fake_load_random maximum packet size
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed Sep 14, 2024
1 parent c2784dd commit cb9cc82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/fakepackets.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ int send_fake_https_request(const HANDLE w_filter,
const BYTE set_checksum,
const BYTE set_seq
);
int fake_load_from_hex(const char *data);
int fake_load_random(unsigned int count, unsigned int maxsize);
2 changes: 1 addition & 1 deletion src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ int main(int argc, char *argv[]) {
}
break;
case 'j': // --fake-gen
if (fake_load_random(atoub(optarg, "Fake generator parameter error!"))) {
if (fake_load_random(atoub(optarg, "Fake generator parameter error!"), 200)) {
puts("WARNING: fake generator has failed!");
}
break;
Expand Down

0 comments on commit cb9cc82

Please sign in to comment.