We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d74162 commit 4b83f90Copy full SHA for 4b83f90
general/lib/io/config_file.c
@@ -59,14 +59,17 @@ char *conf_opts_root_dir(char *opt) {
59
int conf_read_opt(int argc, char *argv[], struct Configs *configs) {
60
int opt;
61
62
- while ((opt = getopt(argc, argv, "m:d:p:i:")) != -1) {
+ while ((opt = getopt(argc, argv, "m:d:p:i:h")) != -1) {
63
switch (opt) {
64
case 'p':
65
configs->port_number = conf_opts_port_number(optarg);
66
break;
67
case 'm':
68
configs->mode_concurrency = conf_opts_mode_concurrency(optarg);
69
70
+ case 'h':
71
+ DOS_PROTECTION = 1;
72
+ break;
73
case 'i':
74
if (strlen(optarg) > BUFFER_SIZE - 1) {
75
fprintf(stderr, "config_file.c/ conf_read_opt error in external_ip");
0 commit comments