diff options
Diffstat (limited to 'kpov_judge/tasks/radius_mysql_pam')
-rw-r--r-- | kpov_judge/tasks/radius_mysql_pam/task.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kpov_judge/tasks/radius_mysql_pam/task.py b/kpov_judge/tasks/radius_mysql_pam/task.py index db8af8d..621c53b 100644 --- a/kpov_judge/tasks/radius_mysql_pam/task.py +++ b/kpov_judge/tasks/radius_mysql_pam/task.py @@ -109,6 +109,9 @@ def gen_params(user_id, params_meta): SQLpassword+=crke[randint(0,25)]
params['RADIUS_PASSWORD'] = password
params['MYSQL_ADMIN_PASSWORD'] = SQLpassword
+
+ ip_radius_server = ['10.0.2.7', '192.168.11.21', '192.168.0.47', '10.0.16.134', '10.0.16.17', '172.19.7.16']
+ params['IP_RS'] = r.choice(ip_radius_server);
return params
def task_check(results, params):
|