mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-03-18 18:14:02 +00:00
Reduce minimum web refresh interval to 5 seconds.
This commit is contained in:
parent
87a7802a9c
commit
e861d1b840
@ -34,8 +34,8 @@ class WireGuardInstanceForm(forms.ModelForm):
|
||||
post_down = cleaned_data.get('post_down')
|
||||
|
||||
peer_list_refresh_interval = cleaned_data.get('peer_list_refresh_interval')
|
||||
if peer_list_refresh_interval < 10:
|
||||
raise forms.ValidationError('Peer List Refresh Interval must be at least 10 seconds')
|
||||
if peer_list_refresh_interval < 5:
|
||||
raise forms.ValidationError('Peer List Refresh Interval must be at least 5 seconds')
|
||||
|
||||
if not is_valid_ip_or_hostname(hostname):
|
||||
raise forms.ValidationError('Invalid hostname or IP Address')
|
||||
|
Loading…
Reference in New Issue
Block a user