Browse Source

Send accounting start packet if log radius is enabled

z3apa3a 4 năm trước cách đây
mục cha
commit
5fa261e91e
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/authradius.c

+ 4 - 1
src/authradius.c

@@ -655,8 +655,11 @@ CLEANRET:
 }
 
 int radauth(struct clientparam * param){
+	int res;
 	/*radsend(param, 0, 0);*/
-	return radsend(param, 1, 0);
+	res = radsend(param, 1, 0);
+	if(!res && param->srv->logfunc == logradius)radsend(param, 0, 0);
+	return res;
 }
 
 void logradius(struct clientparam * param, const unsigned char *s) {