From 60423d63f5d6f2f83aee1a56c31f214e78d4b86d Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Wed, 24 Jan 2024 23:32:04 +0100 Subject: [PATCH] luci-mod-network: Restructure DHCP options DHCP devices: add minport and maxport Signed-off-by: Paul Donald --- .../luci-static/resources/view/network/dhcp.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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.')); -- 2.30.2