From 4026145ac1d69e7acdec7e95362469fbae249afb Mon Sep 17 00:00:00 2001 From: pikachu <40382944+pic4xiu@users.noreply.github.com> Date: Fri, 14 Feb 2025 14:43:21 +0800 Subject: [PATCH] Fixed the bug that the -q parameter cannot take effect --- app/src/main/jni/pcapd/pcapd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/jni/pcapd/pcapd.c b/app/src/main/jni/pcapd/pcapd.c index 793c73ed..59a08ff9 100644 --- a/app/src/main/jni/pcapd/pcapd.c +++ b/app/src/main/jni/pcapd/pcapd.c @@ -1033,7 +1033,7 @@ static void parse_args(pcapd_conf_t *conf, int argc, char **argv) { init_conf(conf); opterr = 0; - while ((c = getopt (argc, argv, "hdtni:u:b:l:L:")) != -1) { + while ((c = getopt (argc, argv, "hdtnqi:u:b:l:L:")) != -1) { switch(c) { case 'i': if(conf->num_interfaces >= PCAPD_MAX_INTERFACES) {