Skip to content

Commit 15eacd3

Browse files
ValerioNeriGitandreabac3
authored andcommitted
Fixed: Close socket for long files
1 parent bfed956 commit 15eacd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

general/lib/io/config_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ char *conf_opts_root_dir(char *opt) {
5959
int conf_read_opt(int argc, char *argv[], struct Configs *configs) {
6060
int opt;
6161

62-
while ((opt = getopt(argc, argv, "m:d:p:i:h")) != -1) {
62+
while ((opt = getopt(argc, argv, "m:d:p:i:s")) != -1) {
6363
switch (opt) {
6464
case 'p':
6565
configs->port_number = conf_opts_port_number(optarg);
6666
break;
6767
case 'm':
6868
configs->mode_concurrency = conf_opts_mode_concurrency(optarg);
6969
break;
70-
case 'h':
70+
case 's':
7171
DOS_PROTECTION = 1;
7272
break;
7373
case 'i':

0 commit comments

Comments
 (0)