summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-12-08 13:01:13 +0100
committerJo-Philipp Wich <jo@mein.io>2023-12-08 13:01:13 +0100
commit864bf25244a073bf85272524cd90df0a41629577 (patch)
treee8e4f53ab25ff7223ab74d4d2569542d4fdfe537 /modules/luci-mod-network/htdocs
parentea81dde0ebb10947d1334cc9c732920e76db4a17 (diff)
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js1
1 files changed, 1 insertions, 0 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 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;