From: Paul Donald Date: Sat, 30 Nov 2024 14:49:08 +0000 (+0100) Subject: luci-proto-ipv6: set recommended default for norelease X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=98c04137b47dd5253cdfcf18e5b4ad6e68258c46;p=project%2Fluci.git luci-proto-ipv6: set recommended default for norelease See https://github.com/openwrt/luci/issues/7410 Basically: RFC9096 updates the language in order to avoid DHCPv6 RELEASE upon reboot to avoid re-addressing. (now: RELEASE == SHOULD NOT) Signed-off-by: Paul Donald --- diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js index 235bbe2cb3..2dac7b78f4 100644 --- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js +++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js @@ -32,6 +32,8 @@ return network.registerProtocol('dhcpv6', { o.default = 'auto'; o = s.taboption('general', form.Flag, 'norelease', _('Do not send a Release when restarting'), _('Enable to minimise the chance of prefix change after a restart')); + o.default = '1'; + o.rmempty = false; o = s.taboption('advanced', form.Value, 'clientid', _('Client ID to send when requesting DHCP')); o.datatype = 'hexstring';