Skip to content

Commit 7b66094

Browse files
committed
Fix help print (--help), '?' is reserved in getopt.
Broken due to 16f2a8f
1 parent a6c7169 commit 7b66094

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/goodbyedpi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static struct option long_options[] = {
188188
{"native-frag", no_argument, 0, '*' },
189189
{"reverse-frag",no_argument, 0, '(' },
190190
{"max-payload", optional_argument, 0, '|' },
191-
{"debug-exit", optional_argument, 0, '?' },
191+
{"debug-exit", optional_argument, 0, 'x' },
192192
{0, 0, 0, 0 }
193193
};
194194

@@ -940,7 +940,7 @@ int main(int argc, char *argv[]) {
940940
else
941941
max_payload_size = 1200;
942942
break;
943-
case '?': // --debug-exit
943+
case 'x': // --debug-exit
944944
debug_exit = true;
945945
break;
946946
default:
@@ -1123,6 +1123,7 @@ int main(int argc, char *argv[]) {
11231123
die();
11241124
}
11251125
if (debug_exit) {
1126+
printf("Debug Exit\n");
11261127
exit(EXIT_SUCCESS);
11271128
}
11281129
printf("Filter activated, GoodbyeDPI is now running!\n");

0 commit comments

Comments
 (0)