Просмотр исходного кода

Allow transparent client proxy with 'parent 1000 extip 0.0.0.0'

z3APA3A 7 лет назад
Родитель
Сommit
be5aa53106
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/auth.c

+ 1 - 0
src/auth.c

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