From 7c9d1a259ca739bec577a89481b92c1ae2cc3c22 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 14 Sep 2019 17:03:23 +0200 Subject: [PATCH] luci-base: network.js: register "none" protocol Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/network.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 106139f26..525b7c9f1 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -175,6 +175,10 @@ function getProtocolHandlers(cache) { if (!L.isObject(protos)) throw !1; + /* Register "none" protocol */ + if (!protos.hasOwnProperty('none')) + Object.assign(protos, { none: { no_device: false } }); + /* Hack: emulate relayd protocol */ if (!protos.hasOwnProperty('relay')) Object.assign(protos, { relay: { no_device: true } }); -- 2.25.1