mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Added -s option support for proxying with splice() for Liux
(without copying network data to userspace). Currently only for tcppm.
This commit is contained in:
1 parent
945c30c5ee
commit
6696b35d74
6 files changed
+236
-4
No files matched your search
+7
-1
@@ -121,6 +121,9 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
#else
|
||||
" -u never ask for username\n"
|
||||
" -u2 always ask for username\n"
|
||||
#endif
|
||||
#ifdef WITHSLICE
|
||||
" -s Use slice() - faster proxing, but no filtering for data\n"
|
||||
#endif
|
||||
" -fFORMAT logging format (see documentation)\n"
|
||||
" -l log to stderr\n"
|
||||
@@ -303,7 +306,10 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
break;
|
||||
case 's':
|
||||
case 'a':
|
||||
srv.singlepacket = 1 + atoi(argv[i]+2);
|
||||
if(isudp)
|
||||
srv.singlepacket = 1 + atoi(argv[i]+2);
|
||||
else
|
||||
srv.usesplice = 1 + atoi(argv[i]+2);
|
||||
break;
|
||||
default:
|
||||
error = 1;
|
||||
|
||||
Reference in new issue
Block a user