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'), _(`IPv4 address or hostname to ping.`));
- o.datatype = 'host(1)';
+ 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.depends({ mode: "ping_reboot" });
o.depends({ mode: "restart_iface" });
+ o = s.taboption('general', form.ListValue, 'addressfamily',
+ _('Address family for pinging the host'));
+ o.default = 'any';
+ o.depends({ mode: 'ping_reboot' });
+ o.depends({ mode: 'restart_iface' });
+ o.value('any');
+ o.value('ipv4');
+ o.value('ipv6');
+
o = s.taboption('general', form.Value, 'pingperiod',
_('Check Interval'),
_("How often to ping the host specified above. \
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:82
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:91
msgid ""
"<i>Applies to Ping Reboot and Restart Interface modes</i> <br /> Specify the "
"interface to monitor and restart if a ping over it fails."
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:72
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:50
+msgid "Address family for pinging the host"
+msgstr ""
+
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:81
msgid ""
"Applies to Ping Reboot and Periodic Reboot modes</i> <br /> When rebooting "
"the router, the service will trigger a soft reboot. Entering a non-zero "
"0 to disable the forced reboot delay."
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:88
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:97
msgid ""
"Applies to Ping Reboot and Restart Interface modes</i> <br /> If using "
"ModemManager, you can have Watchcat restart your ModemManger interface by "
"specifying its name."
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:63
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:72
msgid "Big: 248 bytes"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:50
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:59
msgid "Check Interval"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:71
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:80
msgid "Force Reboot Delay"
msgstr ""
msgid "Host To Check"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:51
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:60
msgid ""
"How often to ping the host specified above. <br /><br />The default unit is "
"seconds, without a suffix, but you can use the suffix <b>m</b> for minutes, "
"li><ul>"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:64
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:73
msgid "Huge: 1492 bytes"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:43
-msgid "IPv4 address or hostname to ping."
-msgstr ""
-
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:95
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:104
msgid ""
"If using ModemManager, then before restarting the interface, set the modem "
"to be allowed to use any band."
"li><ul>"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:80
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:89
msgid "Interface"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:81
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:90
msgid "Interface to monitor and/or restart"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:65
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:74
msgid "Jumbo: 9000 bytes"
msgstr ""
msgid "Mode"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:87
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:96
msgid "Name of ModemManager Interface"
msgstr ""
msgid "Periodic Reboot"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:59
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:68
msgid "Ping Packet Size"
msgstr ""
msgid "Restart Interface"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:60
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:69
msgid "Small: 1 byte"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:62
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:71
msgid "Standard: 56 bytes"
msgstr ""
msgid "These rules will govern how this device reacts to network events."
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:94
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:103
msgid "Unlock Modem Bands"
msgstr ""
msgid "Watchcat"
msgstr ""
-#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:61
+#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:70
msgid "Windows: 32 bytes"
msgstr ""