diff --git a/src/common.c b/src/common.c index ad08142..1300744 100644 --- a/src/common.c +++ b/src/common.c @@ -73,7 +73,8 @@ struct extparam conf = { #else 0, #endif - 0, -1, 0, 0, 0, 0, 0, 500, 0, 0, 0, 0, 0, + 0, -1, 0, 0, 0, 0, + 0, 500, 0, 0, 0, 0, 6, 600, 1048576, NULL, NULL, diff --git a/src/conf.c b/src/conf.c index eb91fe7..bbb813e 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1642,7 +1642,6 @@ void freeconf(struct extparam *confp){ #endif *SAFAMILY(&confp->intsa) = AF_INET; *SAFAMILY(&confp->extsa) = AF_INET; - confp->singlepacket = 0; confp->maxchild = 100; resolvfunc = NULL; numservers = 0; diff --git a/src/proxy.c b/src/proxy.c index f0331a3..911ea76 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -240,7 +240,7 @@ void * proxychild(struct clientparam* param) { if(!(buf = myalloc(BUFSIZE))) {RETURN(21);} bufsize = BUFSIZE; - anonymous = param->srv->singlepacket; + anonymous = param->srv->anonymous; for(;;){ memset(buf, 0, bufsize); inbuf = 0; diff --git a/src/proxymain.c b/src/proxymain.c index 69d0581..3c289ae 100644 --- a/src/proxymain.c +++ b/src/proxymain.c @@ -304,8 +304,10 @@ int MODULEMAINFUNC (int argc, char** argv){ case 'S': srv.stacksize = atoi(argv[i]+2); break; - case 's': case 'a': + srv.anonymous = 1 + atoi(argv[i]+2); + break; + case 's': if(isudp) srv.singlepacket = 1 + atoi(argv[i]+2); else diff --git a/src/structures.h b/src/structures.h index 558269c..340a2c9 100644 --- a/src/structures.h +++ b/src/structures.h @@ -388,6 +388,7 @@ struct srvparam { int family; int stacksize; int noforce; + int anonymous; #ifdef WITHSPLICE int usesplice; #endif @@ -513,8 +514,9 @@ struct extparam { struct bandlim * bandlimiter, *bandlimiterout; struct trafcount * trafcounter; struct srvparam *services; - int stacksize, threadinit, counterd, haveerror, rotate, paused, archiverc, - demon, maxchild, singlepacket, needreload, timetoexit, version, noforce; + int stacksize, + threadinit, counterd, haveerror, rotate, paused, archiverc, + demon, maxchild, needreload, timetoexit, version, noforce; int authcachetype, authcachetime; int filtermaxsize; unsigned char *logname, **archiver;