mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-13 00:10:11 +08:00
Compare commits
No commits in common. "5cb42abbb3a5a6f5b35d7eb7921ff1a850e1a8b0" and "a5c81e4a290e7fbd0acc1535d34c177453929837" have entirely different histories.
5cb42abbb3
...
a5c81e4a29
1
.gitignore
vendored
1
.gitignore
vendored
@ -259,4 +259,3 @@ pip-log.txt
|
|||||||
|
|
||||||
#Mr Developer
|
#Mr Developer
|
||||||
.mr.developer.cfg
|
.mr.developer.cfg
|
||||||
CLAUDE.md
|
|
||||||
|
|||||||
114
src/common.c
114
src/common.c
@ -92,85 +92,49 @@ char *rotations[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
int timeouts[12] = {
|
|
||||||
1, /* SINGLEBYTE_S */
|
|
||||||
5, /* SINGLEBYTE_L */
|
|
||||||
30, /* STRING_S */
|
|
||||||
60, /* STRING_L */
|
|
||||||
180, /* CONNECTION_S */
|
|
||||||
1800, /* CONNECTION_L */
|
|
||||||
15, /* DNS_TO */
|
|
||||||
60, /* CHAIN_TO */
|
|
||||||
15, /* CONNECT_TO */
|
|
||||||
5, /* CONNBACK_TO */
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
};
|
|
||||||
|
|
||||||
struct extparam conf = {
|
struct extparam conf = {
|
||||||
.threadinit = {0, 0},
|
{0, 0}, /* threadinit */
|
||||||
.timeouts = timeouts,
|
{1, 5, 30, 60, 180, 1800, 15, 60, 15, 5, 0, 0}, /* timeouts */
|
||||||
.acl = NULL,
|
NULL, /* struct ace * acl; */
|
||||||
.conffile = NULL,
|
NULL, /* char * conffile; */
|
||||||
.bandlimiter = NULL,
|
NULL, NULL, /* struct bandlim * bandlimiter, *bandlimiterout; */
|
||||||
.bandlimiterout = NULL,
|
NULL, /* struct connlim * connlimiter; */
|
||||||
.connlimiter = NULL,
|
NULL, /* struct trafcount * trafcounter; */
|
||||||
.trafcounter = NULL,
|
NULL, /* struct srvparam *services; */
|
||||||
.services = NULL,
|
0, /* int stacksize, */
|
||||||
.stacksize = 0,
|
-1, 0, 0, 0, 0, /* counterd, haveerror, rotate, paused, archiverc, */
|
||||||
.counterd = -1,
|
0, 500, 0, 0, 0, 0, 0, 0, 2, /* demon, maxchild, backlog, needreload, timetoexit, version, noforce, bandlimver, parentretries; */
|
||||||
.haveerror = 0,
|
6, 600, /* int authcachetype, authcachetime; */
|
||||||
.rotate = 0,
|
1048576, /* int filtermaxsize; */
|
||||||
.paused = 0,
|
0, 0, 0, /* int gracetraf, gracenum, gracedelay */
|
||||||
.archiverc = 0,
|
0, /* int maxseg */
|
||||||
.demon = 0,
|
NULL, NULL, /* unsigned char *logname, **archiver; */
|
||||||
.maxchild = 500,
|
NONE, NONE, /* ROTATION logtype, countertype; */
|
||||||
.backlog = 0,
|
NULL, /* char * counterfile; */
|
||||||
.needreload = 0,
|
|
||||||
.timetoexit = 0,
|
|
||||||
.version = 0,
|
|
||||||
.noforce = 0,
|
|
||||||
.bandlimver = 0,
|
|
||||||
.parentretries = 2,
|
|
||||||
.authcachetype = 6,
|
|
||||||
.authcachetime = 600,
|
|
||||||
.filtermaxsize = 1048576,
|
|
||||||
.gracetraf = 0,
|
|
||||||
.gracenum = 0,
|
|
||||||
.gracedelay = 0,
|
|
||||||
.maxseg = 0,
|
|
||||||
.logname = NULL,
|
|
||||||
.archiver = NULL,
|
|
||||||
.logtype = NONE,
|
|
||||||
.countertype = NONE,
|
|
||||||
.counterfile = NULL,
|
|
||||||
#ifndef NOIPV6
|
#ifndef NOIPV6
|
||||||
.intsa = {AF_INET},
|
{AF_INET},
|
||||||
.extsa6 = {AF_INET6},
|
{AF_INET6},
|
||||||
.extsa = {AF_INET},
|
{AF_INET},
|
||||||
#else
|
#else
|
||||||
.intsa = {AF_INET},
|
{AF_INET},
|
||||||
.extsa = {AF_INET},
|
{AF_INET},
|
||||||
#endif
|
#endif
|
||||||
.pwl = NULL,
|
NULL,
|
||||||
.authenticate = NULL,
|
NULL,
|
||||||
.authfunc = doconnect,
|
doconnect,
|
||||||
.logfunc = lognone,
|
lognone,
|
||||||
.bandlimfunc = NULL,
|
NULL,
|
||||||
.trafcountfunc = NULL,
|
NULL,
|
||||||
.logtarget = NULL,
|
NULL, NULL,
|
||||||
.logformat = NULL,
|
NULL,
|
||||||
.fmon = NULL,
|
NULL,
|
||||||
.filters = NULL,
|
NULL,
|
||||||
.authfuncs = NULL,
|
NULL,
|
||||||
.stdlog = NULL,
|
NULL,
|
||||||
.demanddialprog = NULL,
|
NULL,
|
||||||
.stringtable = NULL,
|
(time_t)0, (time_t)0,
|
||||||
.logtime = (time_t)0,
|
0,0,
|
||||||
.time = (time_t)0,
|
'@',
|
||||||
.logdumpsrv = 0,
|
|
||||||
.logdumpcli = 0,
|
|
||||||
.delimchar = '@',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int numservers=0;
|
int numservers=0;
|
||||||
|
|||||||
@ -154,8 +154,6 @@ extern int timetoexit;
|
|||||||
|
|
||||||
extern struct extparam conf;
|
extern struct extparam conf;
|
||||||
|
|
||||||
extern int timeouts[12];
|
|
||||||
|
|
||||||
int sockmap(struct clientparam * param, int timeo, int usesplice);
|
int sockmap(struct clientparam * param, int timeo, int usesplice);
|
||||||
int socksend(struct clientparam *param, SOCKET sock, unsigned char * buf, int bufsize, int to);
|
int socksend(struct clientparam *param, SOCKET sock, unsigned char * buf, int bufsize, int to);
|
||||||
int socksendto(struct clientparam *param, SOCKET sock, struct sockaddr * sin, unsigned char * buf, int bufsize, int to);
|
int socksendto(struct clientparam *param, SOCKET sock, struct sockaddr * sin, unsigned char * buf, int bufsize, int to);
|
||||||
|
|||||||
@ -643,7 +643,7 @@ struct extparam {
|
|||||||
#else
|
#else
|
||||||
int threadinit[2];
|
int threadinit[2];
|
||||||
#endif
|
#endif
|
||||||
int *timeouts;
|
int timeouts[12];
|
||||||
struct ace * acl;
|
struct ace * acl;
|
||||||
char * conffile;
|
char * conffile;
|
||||||
struct bandlim * bandlimiter, *bandlimiterout;
|
struct bandlim * bandlimiter, *bandlimiterout;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user