Skip to content

Commit

Permalink
config: extend unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNardi committed Dec 11, 2023
1 parent 4d9ec7f commit 3fd38a0
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example/ndpiReader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ static void parseOptions(int argc, char **argv) {

case 'd':
enable_protocol_guess = 0;
if(__add_cfg(NULL, "guess_on_giveup", "0") == 1) {
if(__add_cfg(NULL, ndpi_strdup("guess_on_giveup"), ndpi_strdup("0")) == 1) {
printf("Invalid parameter [%s] [num:%d/%d]\n", optarg, num_cfgs, MAX_NUM_CFGS);
exit(1);
}
Expand Down
1 change: 1 addition & 0 deletions tests/cfgs/guessing_disable/config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-d
1 change: 1 addition & 0 deletions tests/cfgs/guessing_disable/pcap/webex.pcap
Loading

0 comments on commit 3fd38a0

Please sign in to comment.