From 3585e2d2011e82f0c4ab28c1a23a3844e979eb7f Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 13 Mar 2023 21:57:14 +0100 Subject: Added ability to define an unlimited number of custom rules IP:port for the same IP (it used tobe limited to 2) --- example/ndpiReader.c | 160 +++++++++++++++++++++++++-------------------------- 1 file changed, 80 insertions(+), 80 deletions(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index d9f4c5fdf..20bc8a91b 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -5089,116 +5089,116 @@ void zscoreUnitTest() { /** @brief MAIN FUNCTION **/ - int main(int argc, char **argv) { - int i, skip_unit_tests = 0; +int main(int argc, char **argv) { + int i, skip_unit_tests = 0; #ifdef DEBUG_TRACE - trace = fopen("/tmp/ndpiReader.log", "a"); + trace = fopen("/tmp/ndpiReader.log", "a"); - if(trace) { - int i; + if(trace) { + int i; - fprintf(trace, " #### %s #### \n", __FUNCTION__); - fprintf(trace, " #### [argc: %u] #### \n", argc); + fprintf(trace, " #### %s #### \n", __FUNCTION__); + fprintf(trace, " #### [argc: %u] #### \n", argc); - for(i=0; i