Disable dirlist by default

This commit is contained in:
Sergey Lyubka committed 2022-02-14 11:32:01 +00:00
1 parent 5bc164de76
commit 4fec149345
5 files changed
+22 -15

No files matched your search

+9 -1
View File
@@ -314,6 +314,10 @@ struct timeval {
#include <time.h>
#include <unistd.h>
#ifndef MG_ENABLE_DIRLIST
#define MG_ENABLE_DIRLIST 1
#endif
#endif
@@ -403,6 +407,10 @@ typedef int socklen_t;
#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
#endif
#ifndef MG_ENABLE_DIRLIST
#define MG_ENABLE_DIRLIST 1
#endif
#endif
@@ -456,7 +464,7 @@ typedef int socklen_t;
#endif
#ifndef MG_ENABLE_DIRLIST
#define MG_ENABLE_DIRLIST 1
#define MG_ENABLE_DIRLIST 0
#endif
#ifndef MG_ENABLE_CUSTOM_RANDOM