Fix: fake_load_random maximum packet size

This commit is contained in:
ValdikSS 2024-09-15 00:32:43 +03:00
parent c2784dd79e
commit cb9cc82fde
2 changed files with 3 additions and 1 deletions

View File

@ -18,3 +18,5 @@ int send_fake_https_request(const HANDLE w_filter,
const BYTE set_checksum, const BYTE set_checksum,
const BYTE set_seq const BYTE set_seq
); );
int fake_load_from_hex(const char *data);
int fake_load_random(unsigned int count, unsigned int maxsize);

View File

@ -949,7 +949,7 @@ int main(int argc, char *argv[]) {
} }
break; break;
case 'j': // --fake-gen 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!"); puts("WARNING: fake generator has failed!");
} }
break; break;