From: Paul Donald Date: Wed, 24 Jan 2024 22:32:04 +0000 (+0100) Subject: luci-mod-network: Restructure DHCP options X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=60423d63f5d6f2f83aee1a56c31f214e78d4b86d;p=project%2Fluci.git luci-mod-network: Restructure DHCP options DHCP devices: add minport and maxport Signed-off-by: Paul Donald --- 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 775a446146..6af4066310 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 @@ -673,6 +673,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('1024') + ' ' + _('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('65535') + ' ' + _('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.'));