luci-proto-ipv6: set recommended default for norelease master openwrt-24.10
authorPaul Donald <newtwen+github@gmail.com>
Sat, 30 Nov 2024 14:49:08 +0000 (15:49 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Sat, 30 Nov 2024 14:49:08 +0000 (15:49 +0100)
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 <newtwen+github@gmail.com>
protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js

index 235bbe2cb3187ce1e3e0a56919cbbcfab7c949b8..2dac7b78f47d7928fbcae73fa81a22d5318bfa8b 100644 (file)
@@ -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';