Fixed: admin always starts with -s under Linux

This commit is contained in:
z3APA3A 2018-12-28 12:45:52 +03:00
parent dec10d4edd
commit 6fe36b01d1
2 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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;