mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-04-19 00:45:16 +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')
|
post_down = cleaned_data.get('post_down')
|
||||||
|
|
||||||
peer_list_refresh_interval = cleaned_data.get('peer_list_refresh_interval')
|
peer_list_refresh_interval = cleaned_data.get('peer_list_refresh_interval')
|
||||||
if peer_list_refresh_interval < 10:
|
if peer_list_refresh_interval < 5:
|
||||||
raise forms.ValidationError('Peer List Refresh Interval must be at least 10 seconds')
|
raise forms.ValidationError('Peer List Refresh Interval must be at least 5 seconds')
|
||||||
|
|
||||||
if not is_valid_ip_or_hostname(hostname):
|
if not is_valid_ip_or_hostname(hostname):
|
||||||
raise forms.ValidationError('Invalid hostname or IP Address')
|
raise forms.ValidationError('Invalid hostname or IP Address')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user