mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 02:25: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;
|
||||
case 's':
|
||||
#ifdef WITHSPLICE
|
||||
if(isudp)
|
||||
if(isudp || srv.service == S_ADMIN)
|
||||
#endif
|
||||
srv.singlepacket = 1 + atoi(argv[i]+2);
|
||||
#ifdef WITHSPLICE
|
||||
|
@ -347,11 +347,7 @@ void * adminchild(struct clientparam* param) {
|
||||
int limited = 0;
|
||||
|
||||
|
||||
#ifdef WITHSPLICE
|
||||
limited =param->srv->usesplice;
|
||||
#else
|
||||
limited =param->srv->singlepacket;
|
||||
#endif
|
||||
pp.inbuf = 0;
|
||||
pp.cp = param;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user