mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Fixed: admin always starts with -s under Linux
This commit is contained in:
parent
dec10d4edd
commit
6fe36b01d1
@ -403,7 +403,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
#ifdef WITHSPLICE
|
#ifdef WITHSPLICE
|
||||||
if(isudp)
|
if(isudp || srv.service == S_ADMIN)
|
||||||
#endif
|
#endif
|
||||||
srv.singlepacket = 1 + atoi(argv[i]+2);
|
srv.singlepacket = 1 + atoi(argv[i]+2);
|
||||||
#ifdef WITHSPLICE
|
#ifdef WITHSPLICE
|
||||||
|
@ -347,11 +347,7 @@ void * adminchild(struct clientparam* param) {
|
|||||||
int limited = 0;
|
int limited = 0;
|
||||||
|
|
||||||
|
|
||||||
#ifdef WITHSPLICE
|
|
||||||
limited =param->srv->usesplice;
|
|
||||||
#else
|
|
||||||
limited =param->srv->singlepacket;
|
limited =param->srv->singlepacket;
|
||||||
#endif
|
|
||||||
pp.inbuf = 0;
|
pp.inbuf = 0;
|
||||||
pp.cp = param;
|
pp.cp = param;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user