From 864bf25244a073bf85272524cd90df0a41629577 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 8 Dec 2023 13:01:13 +0100 Subject: [PATCH] luci-mod-network: exclude alias to self from device picker Do not present alias to self as valid choice in the interface device picker. Fixes: #6754 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/network/interfaces.js | 1 + 1 file changed, 1 insertion(+) 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 3748f04b05..8166ac44b1 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 @@ -588,6 +588,7 @@ return view.extend({ o.nobridges = false; o.optional = false; o.network = ifc.getName(); + o.exclude = '@' + ifc.getName(); o = s.taboption('general', form.Flag, 'auto', _('Bring up on boot')); o.modalonly = true; -- 2.30.2