From fd4da7d3edbc60c2575d4f3485128b09630beb75 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 10 Sep 2024 12:20:29 +0200 Subject: views: set repo address limit to 128 Allow up to 128 IP addresses for repositories. --- ogcp/views.py | 5 +++-- 1 file 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 -- cgit v1.2.3-18-g5258