summaryrefslogtreecommitdiff
path: root/kpov_judge
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge')
-rw-r--r--kpov_judge/tasks/radius_mysql_pam/task.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kpov_judge/tasks/radius_mysql_pam/task.py b/kpov_judge/tasks/radius_mysql_pam/task.py
index 36a5dee..de4f2f7 100644
--- a/kpov_judge/tasks/radius_mysql_pam/task.py
+++ b/kpov_judge/tasks/radius_mysql_pam/task.py
@@ -103,7 +103,7 @@ def gen_params(user_id, params_meta):
params['RADIUS_SECRET'] = kpov_random_helpers.alnum_gen(r, 8)
params['RADIUS_PASSWORD'] = kpov_random_helpers.alnum_gen(r, 4)
params['MYSQL_ADMIN_PASSWORD'] = kpov_random_helpers.alnum_gen(r, 4)
- net = kpov_random_helpers.IPv4_subnet_gen(r, 32)
+ net = kpov_random_helpers.IPv4_net_gen(r, 32)
ip_radius_server = kpov_random_helpers.IPv4_addr_gen(r, net, 1)[0]
params['IP_RS'] = ip_radius_server
return params