mirror of
https://github.com/3proxy/3proxy.git
synced 2025-06-08 20:44:47 +08:00
Added handling of 443.80 port without SNI
This commit is contained in:
parent
cb6a4166b7
commit
71ab2810a1
17
src/tlspr.c
17
src/tlspr.c
@ -181,7 +181,22 @@ void * tlsprchild(struct clientparam* param) {
|
|||||||
|
|
||||||
res = tlstobufcli(param, 0);
|
res = tlstobufcli(param, 0);
|
||||||
if(res <= 0 || param->clibuf[0] != 22){
|
if(res <= 0 || param->clibuf[0] != 22){
|
||||||
if(param->srv->requirecert)RETURN(300-res);
|
param->operation = CONNECT;
|
||||||
|
res = (*param->srv->authfunc)(param);
|
||||||
|
if(res) {RETURN(res);}
|
||||||
|
if (param->npredatfilters){
|
||||||
|
int action;
|
||||||
|
action = handlepredatflt(param);
|
||||||
|
if(action == HANDLED){
|
||||||
|
RETURN(0);
|
||||||
|
}
|
||||||
|
if(action != PASS) RETURN(19);
|
||||||
|
}
|
||||||
|
if(param->redirectfunc){
|
||||||
|
return (*param->redirectfunc)(param);
|
||||||
|
}
|
||||||
|
|
||||||
|
RETURN (mapsocket(param, conf.timeouts[CONNECTION_L]));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lv = param->clibuf[2];
|
lv = param->clibuf[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user