summaryrefslogtreecommitdiff
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:02:49 +0100
commit35041cbd8d7c901f8bbe0c37013ca67ce86cde8c (patch)
tree9015a5b291982b246751cc0ebb1cf4271e259f7a
parent63e2edf9e848d95e60327ef66953ddc21cf3fbab (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> (cherry picked from commit 864bf25244a073bf85272524cd90df0a41629577)
-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 ebd9c05c56..ad2f21789e 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;