mirror of
https://github.com/3proxy/3proxy.git
synced 2025-12-06 14:52:36 +08:00
Fixed: invalid config value initializers
This commit is contained in:
parent
fbca6d8e93
commit
5450ca4cdf
42
src/common.c
42
src/common.c
@ -93,27 +93,31 @@ char *rotations[] = {
|
|||||||
|
|
||||||
|
|
||||||
struct extparam conf = {
|
struct extparam conf = {
|
||||||
{0, 0},
|
{0, 0}, /* threadinit */
|
||||||
{1, 5, 30, 60, 180, 1800, 15, 60, 15, 5, 0, 0},
|
{1, 5, 30, 60, 180, 1800, 15, 60, 15, 5, 0, 0}, /* timeouts */
|
||||||
NULL,
|
NULL, /* struct ace * acl; */
|
||||||
NULL,
|
NULL, /* char * conffile; */
|
||||||
NULL, NULL,
|
NULL, NULL, /* struct bandlim * bandlimiter, *bandlimiterout; */
|
||||||
NULL,
|
NULL, /* struct connlim * connlimiter; */
|
||||||
NULL,
|
NULL, /* struct trafcount * trafcounter; */
|
||||||
NULL,
|
NULL, /* struct srvparam *services; */
|
||||||
0,
|
0, /* int stacksize, */
|
||||||
-1, 0, 0, 0, 0,
|
-1, 0, 0, 0, 0, /* counterd, haveerror, rotate, paused, archiverc, */
|
||||||
0, 500, 0, 0, 0, 0, 0, 0, 2,
|
0, 500, 0, 0, 0, 0, 0, 0, 2, /* demon, maxchild, backlog, needreload, timetoexit, version, noforce, bandlimver, parentretries; */
|
||||||
0, 0, 0,
|
6, 600, /* int authcachetype, authcachetime; */
|
||||||
6, 600,
|
1048576, /* int filtermaxsize; */
|
||||||
1048576,
|
0, 0, 0, /* int gracetraf, gracenum, gracedelay */
|
||||||
NULL, NULL,
|
0, /* int maxseg */
|
||||||
NONE, NONE,
|
NULL, NULL, /* unsigned char *logname, **archiver; */
|
||||||
NULL,
|
NONE, NONE, /* ROTATION logtype, countertype; */
|
||||||
|
NULL, /* char * counterfile; */
|
||||||
#ifndef NOIPV6
|
#ifndef NOIPV6
|
||||||
{AF_INET},{AF_INET6},{AF_INET},
|
{AF_INET},
|
||||||
|
{AF_INET6},
|
||||||
|
{AF_INET},
|
||||||
#else
|
#else
|
||||||
{AF_INET},{AF_INET},
|
{AF_INET},
|
||||||
|
{AF_INET},
|
||||||
#endif
|
#endif
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
|
|||||||
@ -651,6 +651,7 @@ struct extparam {
|
|||||||
int authcachetype, authcachetime;
|
int authcachetype, authcachetime;
|
||||||
int filtermaxsize;
|
int filtermaxsize;
|
||||||
int gracetraf, gracenum, gracedelay;
|
int gracetraf, gracenum, gracedelay;
|
||||||
|
int maxseg;
|
||||||
unsigned char *logname, **archiver;
|
unsigned char *logname, **archiver;
|
||||||
ROTATION logtype, countertype;
|
ROTATION logtype, countertype;
|
||||||
char * counterfile;
|
char * counterfile;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user