From 6bcdc18d65c8aee62f0344e1688868edae45d1f7 Mon Sep 17 00:00:00 2001 From: Andy Chiang Date: Fri, 15 May 2026 18:23:26 +0700 Subject: [PATCH] luci-mod-network: ra_preference option uses '' instead of "medium" "medium" is the default ra_preference option in odhcpd. Which has the same effect as not defining it. Using '' will prevent unnecessary parameters from being written to the flash. Link https://github.com/openwrt/odhcpd/blob/master/README.md Signed-off-by: Andy Chiang --- .../htdocs/luci-static/resources/view/network/interfaces.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 67a849a9ee..bd0d479aa4 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,9 +897,8 @@ 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.default = 'medium'; + so.value('', _('Medium')); so.value('low', _('Low')); - so.value('medium', _('Medium')); so.value('high', _('High')); so.depends('ra', 'server');