Skip to content

Commit

Permalink
luci-mod-network: Restructure DHCP options
Browse files Browse the repository at this point in the history
DHCP devices: add minport and maxport

Signed-off-by: Paul Donald <[email protected]>
  • Loading branch information
systemcrash committed Jan 25, 2024
1 parent 79ed42a commit 8eb6ca2
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,22 @@ return view.extend({
o.datatype = 'port';
o.placeholder = _('any');

o = s.taboption('devices', form.Value, 'minport',
_('Minimum source port #'),
_('Min valid value %s.').format('<code>1024</code>') + ' ' + _('Useful for systems behind firewalls.'));
o.optional = true;
o.datatype = 'port';
o.placeholder = 1024;
o.depends('queryport', '');

o = s.taboption('devices', form.Value, 'maxport',
_('Maximum source port #'),
_('Max valid value %s.').format('<code>65535</code>') + ' ' + _('Useful for systems behind firewalls.'));
o.optional = true;
o.datatype = 'port';
o.placeholder = 50000;
o.depends('queryport', '');

o = s.taboption('limits', form.Value, 'dhcpleasemax',
_('Max. DHCP leases'),
_('Maximum allowed number of active DHCP leases.'));
Expand Down

0 comments on commit 8eb6ca2

Please sign in to comment.