From 8911e459d84ee57b872cbb1dd5e64a2287593a3f Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Tue, 28 Dec 2021 23:17:13 +0300 Subject: [PATCH] Exit when native fragmentation is enabled but http/https values are not set --- src/goodbyedpi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index 05cbe28..5bf4e87 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -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;