summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index c78dc24..af0f3fa 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -3093,9 +3093,10 @@ def repo_addr_is_valid(form):
res = False
flash(_(f'The following addresses are invalid: {" ".join(invalid_ips)}'), category='error')
- if ip_count > 16:
+ MAX_IP_COUNT = 128
+ if ip_count > MAX_IP_COUNT:
res = False
- flash(_('More than 16 addresses is not supported'), category='error')
+ flash(_(f'More than {MAX_IP_COUNT} addresses is not supported'), category='error')
return res