Allow transparent client proxy with 'parent 1000 extip 0.0.0.0'

This commit is contained in:
z3APA3A 2018-04-15 00:28:59 +03:00
parent 95f79e6f02
commit be5aa53106

View File

@ -252,6 +252,7 @@ int handleredirect(struct clientparam * param, struct ace * acentry){
if(!connected){ if(!connected){
if(cur->type == R_EXTIP){ if(cur->type == R_EXTIP){
param->sinsl = cur->addr; param->sinsl = cur->addr;
if(SAISNULL(&param->sinsl))param->sinsl = param->sincr;
if(cur->next)continue; if(cur->next)continue;
return 0; return 0;
} }