mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-27 07:59:41 +08:00
"auto" command added
This commit is contained in:
1 parent
5165a4d5bd
commit
fb56b7d307
5 files changed
+47
-4
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
3APA3A simpliest proxy server
|
||||
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||
|
||||
please read License Agreement
|
||||
|
||||
*/
|
||||
|
||||
#include "proxy.h"
|
||||
|
||||
|
||||
void * autochild(struct clientparam* param) {
|
||||
int len;
|
||||
|
||||
if(!param->clibuf){
|
||||
if(!(param->clibuf = myalloc(SRVBUFSIZE))) return 0;
|
||||
param->clibufsize = SRVBUFSIZE;
|
||||
param->clioffset = param->cliinbuf = 0;
|
||||
}
|
||||
len = sockfillbuffcli(param, 1, CONNECTION_S);
|
||||
if (len != 1){
|
||||
param->res = 801;
|
||||
dolog(param, "");
|
||||
}
|
||||
if(*param->clibuf == 4 || *param->clibuf == 5) return sockschild(param);
|
||||
return proxychild(param);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user