Compare commits

..

1 Commits

Author SHA1 Message Date
zkx5xkt
f70d09bb96
Merge e94e6ec221 into 57841074b9 2025-04-27 16:34:05 +00:00
4 changed files with 10 additions and 18 deletions

View File

@ -22,15 +22,8 @@ void * autochild(struct clientparam* param) {
param->res = 801;
dolog(param, (unsigned char *)"");
}
if(*param->clibuf == 4 || *param->clibuf == 5) {
param->service = S_SOCKS;
return sockschild(param);
}
if(*param->clibuf == 22) {
param->service = S_TLSPR;
return tlsprchild(param);
}
param->service = S_PROXY;
if(*param->clibuf == 4 || *param->clibuf == 5) return sockschild(param);
if(*param->clibuf == 22) return tlsprchild(param);
return proxychild(param);
}

View File

@ -190,7 +190,7 @@ int dobuf2(struct clientparam * param, unsigned char * buf, const unsigned char
break;
case 'N':
if(param->service <= MAX_SERVICE) {
if(param->service < 15) {
len = (conf.stringtable)? (int)strlen((char *)conf.stringtable[SERVICES + param->service]) : 0;
if(len > 20) len = 20;
memcpy(buf+i, (len)?conf.stringtable[SERVICES + param->service]:(unsigned char*)"-", (len)?len:1);

View File

@ -28,9 +28,9 @@ unsigned char * strings[] = {
/* 15 */ (unsigned char *)"DNSPR",
/* 16 */ (unsigned char *)"FTPPR",
/* 17 */ (unsigned char *)"SMTPP",
/* 18 */ (unsigned char *)"AUTO",
/* 19 */ (unsigned char *)"TLSPR",
/* 20 */ (unsigned char *)"ZOMBIE",
/* 18 */ (unsigned char *)"ZOMBIE",
/* 19 */ NULL,
/* 20 */ NULL,
/* 21 */ NULL,
/* 22 */ NULL,
/* 23 */ NULL,

View File

@ -181,14 +181,13 @@ typedef enum {
S_DNSPR,
S_FTPPR,
S_SMTPP,
S_REVLI,
S_REVCO,
S_ZOMBIE,
S_AUTO,
S_TLSPR,
S_ZOMBIE
S_TLSPR
}PROXYSERVICE;
#define MAX_SERVICE S_ZOMBIE
struct clientparam;
struct node;
struct symbol;