Fix SSLPlugin with HTTP proxy

This commit is contained in:
Vladimir Dubrovin committed 2022-05-18 18:14:24 +03:00
1 parent 17f07f2053
commit 468124f55c
2 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -313,7 +313,7 @@ static FILTER_ACTION ssl_filter_predata(void *fo, struct clientparam * param){
return REJECT;
}
param->redirectfunc = proxyfunc;
return HANDLED;
return PASS;
}
+7 -5
View File
@@ -540,6 +540,13 @@ for(;;){
if(action != PASS) RETURN(517);
param->nolongdatfilter = 0;
if (param->npredatfilters){
action = handlepredatflt(param);
if(action == HANDLED){
RETURN(0);
}
if(action != PASS) RETURN(19);
}
if (conf.filtermaxsize && contentlength64 > (uint64_t)conf.filtermaxsize) {
param->nolongdatfilter = 1;
@@ -548,11 +555,6 @@ for(;;){
uint64_t newlen64;
newlen64 = sockfillbuffcli(param, (unsigned long)contentlength64, CONNECTION_S);
if(newlen64 == contentlength64) {
action = handlepredatflt(param);
if(action == HANDLED){
RETURN(0);
}
if(action != PASS) RETURN(19);
action = handledatfltcli(param, &param->clibuf, (int *)&param->clibufsize, 0, (int *)&param->cliinbuf);
if(action == HANDLED){
RETURN(0);