Exit when native fragmentation is enabled but http/https values are not set

This commit is contained in:
ValdikSS 2021-12-28 23:17:13 +03:00
parent f4edcf7b4f
commit 8911e459d8
1 changed files with 6 additions and 0 deletions

View File

@ -933,6 +933,12 @@ int main(int argc, char *argv[]) {
"completely.");
}
if (do_native_frag && !(do_fragment_http || do_fragment_https)) {
puts("\nERROR: Native fragmentation is enabled but fragment sizes are not set.\n"
"Fragmentation has no effect.");
exit(EXIT_FAILURE);
}
puts("\nOpening filter");
finalize_filter_strings();
filter_num = 0;