From 7722292e88942e19210799b28320d8e051af0148 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Thu, 30 Oct 2025 14:30:27 +0100 Subject: [PATCH] luci-mod-network: prevent loading non-existent protocol/bonding Bonding is configured under interface properties, and handled by netifd. luci-proto-bonding was removed, even if the proto-bonding package is still useful. This change prevents the trace-back from attempting to load luci-proto-bonding. Signed-off-by: Paul Donald --- modules/luci-base/htdocs/luci-static/resources/network.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 7ce3e44c52..a6def061e4 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -103,6 +103,9 @@ var _init = null, function getProtocolHandlers(cache) { return callNetworkProtoHandlers().then(function(protos) { + /* Prevent attempt to load "protocol/bonding" */ + delete protos.bonding; + /* Register "none" protocol */ if (!protos.hasOwnProperty('none')) Object.assign(protos, { none: { no_device: false } }); -- 2.30.2