FIX: SSLPlugin with SOCKS

This commit is contained in:
Vladimir Dubrovin committed 2022-05-19 13:26:52 +03:00
1 parent d20e76bbc9
commit 1cf169b7ae
2 files changed
+15 -2

No files matched your search

+2 -2
View File
@@ -310,11 +310,11 @@ static FILTER_ACTION ssl_filter_client(void *fo, struct clientparam * param, voi
}
static FILTER_ACTION ssl_filter_predata(void *fo, struct clientparam * param){
if(param->operation != HTTP_CONNECT) return PASS;
if(param->operation != HTTP_CONNECT && param->operation != CONNECT) return PASS;
if(dossl(param, NULL, NULL)) {
return REJECT;
}
param->redirectfunc = proxyfunc;
if(!param->redirectfunc) param->redirectfunc = proxyfunc;
return CONTINUE;
}