diff options
author | Paul Donald <newtwen@gmail.com> | 2024-01-25 02:14:33 +0100 |
---|---|---|
committer | Paul Donald <newtwen@gmail.com> | 2024-01-26 00:57:24 +0100 |
commit | a9744f00e18a8684fe912f49c707ba4af51494b9 (patch) | |
tree | c5b76f424199a1151152ccaa362759f0fa0f6943 /modules/luci-mod-network/htdocs/luci-static | |
parent | 6666d32e1d871cf28d693d71f0e13922f7ab8ae5 (diff) |
luci-mod-network: Restructure DHCP options
DHCP limits: add [min|max]_cache_ttl
Signed-off-by: Paul Donald <newtwen@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index ac282209e7..775a446146 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -701,6 +701,19 @@ return view.extend({ o.datatype = 'range(0,10000)'; o.placeholder = 1000; + o = s.taboption('limits', form.Value, 'min_cache_ttl', + _('Min cache TTL'), + _('Extend short TTL values to the seconds value given when caching them. Use with caution.') + + _(' (Max 1h == 3600)')); + o.optional = true; + o.placeholder = 60; + + o = s.taboption('limits', form.Value, 'max_cache_ttl', + _('Max cache TTL'), + _('Set a maximum seconds TTL value for entries in the cache.')); + o.optional = true; + o.placeholder = 3600; + o = s.taboption('pxe_tftp', form.Flag, 'enable_tftp', _('Enable TFTP server'), _('Enable the built-in single-instance TFTP server.')); |