refactor: rename 'mon_restart_ifaces' to 'enable_badwan_interface_monitoring'

This commit is contained in:
Andrey Petelin
2025-10-10 19:35:14 +05:00
committed by divocat
parent 35d9441837
commit 458fd9251a
2 changed files with 23 additions and 23 deletions

View File

@@ -119,7 +119,7 @@ function createSettingsContent(section) {
o = section.option(
form.Flag,
'mon_restart_ifaces',
'enable_badwan_interface_monitoring',
_('Interface Monitoring'),
_('Interface monitoring for Bad WAN'),
);
@@ -132,7 +132,7 @@ function createSettingsContent(section) {
_('Interface for monitoring'),
_('Select the WAN interfaces to be monitored'),
);
o.depends('mon_restart_ifaces', '1');
o.depends('enable_badwan_interface_monitoring', '1');
o.multiple = true;
o.filter = function (section_id, value) {
// Reject if the value is in the blocked list ['lan', 'loopback']
@@ -155,7 +155,7 @@ function createSettingsContent(section) {
_('Interface Monitoring Delay'),
_('Delay in milliseconds before reloading podkop after interface UP'),
);
o.depends('mon_restart_ifaces', '1');
o.depends('enable_badwan_interface_monitoring', '1');
o.default = '2000';
o.rmempty = false;
o.validate = function (section_id, value) {