Fixed: admin always starts with -s under Linux

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

No files matched your search

+1 -1
View File
@@ -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
-4
View File
@@ -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;