Skip to content

Commit

Permalink
luci-mod-network: Restructure DHCP options
Browse files Browse the repository at this point in the history
DHCP limits: add [min|max]_cache_ttl

Signed-off-by: Paul Donald <newtwen@gmail.com>
  • Loading branch information
systemcrash committed Jan 25, 2024
1 parent 8de441f commit 79ed42a
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,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.'));
Expand Down

0 comments on commit 79ed42a

Please sign in to comment.