mirror of
https://git.openwrt.org/project/luci.git
synced 2025-12-20 08:49:59 +08:00
luci-app-watchcat: allow multiple IP addresses in ping hosts field
The watchcat backend supports multiple hosts but the UI was limited to single entry. Changed datatype from 'host' to 'list(host)' to accept space-separated IP addresses. Signed-off-by: Ivan Diaz <diaz.it@icloud.com>
This commit is contained in:
@@ -49,9 +49,9 @@ return view.extend({
|
||||
1 hour would be: <b>1h</b></li><li>1 week would be: <b>7d</b></li><ul>"));
|
||||
o.default = '6h';
|
||||
|
||||
o = s.taboption('general', form.Value, 'pinghosts', _('Host To Check'), _(`IP address or hostname to ping.`));
|
||||
o.datatype = 'host';
|
||||
o.default = '8.8.8.8';
|
||||
o = s.taboption('general', form.Value, 'pinghosts', _('Host To Check'), _(`IP addresses or hostnames to ping.`));
|
||||
o.datatype = 'list(host)';
|
||||
o.default = '8.8.8.8 1.1.1.1';
|
||||
o.depends({ mode: "ping_reboot" });
|
||||
o.depends({ mode: "restart_iface" });
|
||||
o.depends({ mode: "run_script" });
|
||||
|
||||
Reference in New Issue
Block a user