Sfoglia il codice sorgente

Allow transparent client proxy with 'parent 1000 extip 0.0.0.0'

z3APA3A 7 anni fa
parent
commit
be5aa53106
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;
 			}