Skip to content

Commit cb9cc82

Browse files
committed
Fix: fake_load_random maximum packet size
1 parent c2784dd commit cb9cc82

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/fakepackets.h

+2
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ int send_fake_https_request(const HANDLE w_filter,
1818
const BYTE set_checksum,
1919
const BYTE set_seq
2020
);
21+
int fake_load_from_hex(const char *data);
22+
int fake_load_random(unsigned int count, unsigned int maxsize);

src/goodbyedpi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ int main(int argc, char *argv[]) {
949949
}
950950
break;
951951
case 'j': // --fake-gen
952-
if (fake_load_random(atoub(optarg, "Fake generator parameter error!"))) {
952+
if (fake_load_random(atoub(optarg, "Fake generator parameter error!"), 200)) {
953953
puts("WARNING: fake generator has failed!");
954954
}
955955
break;

0 commit comments

Comments
 (0)