summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-10 12:20:29 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-10 12:20:29 +0200
commitfd4da7d3edbc60c2575d4f3485128b09630beb75 (patch)
treeb4d9a64ca5d01c190769246e698dda7acaa54125
parent6e1d266daf6192428a2369804688504e41e0b1a8 (diff)
views: set repo address limit to 128v1.1.3-31
Allow up to 128 IP addresses for repositories.
-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