From bfcfec76aebe5c96bcc7b517c5ff5b90bf6e714e Mon Sep 17 00:00:00 2001 From: Andy Chiang Date: Tue, 19 May 2026 23:30:21 +0700 Subject: [PATCH] Revert "luci-mod-network: ra_preference option uses '' instead of "medium"" This reverts commit 6bcdc18d65c8aee62f0344e1688868edae45d1f7. Since the bug where a write operation is executed when the input matches the default has been fixed in form.js, this workaround is no longer needed and is being reverted. Signed-off-by: Andy Chiang --- .../htdocs/luci-static/resources/view/network/interfaces.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index bd0d479aa4..67a849a9ee 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -897,8 +897,9 @@ return view.extend({ so = ss.taboption('ipv6-ra', form.ListValue, 'ra_preference', _('Router Priority'), _('A tie-breaker for clients and their routes when multiple routers exist on the same network.')); - so.value('', _('Medium')); + so.default = 'medium'; so.value('low', _('Low')); + so.value('medium', _('Medium')); so.value('high', _('High')); so.depends('ra', 'server');