summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/network.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js
index 106139f267..525b7c9f19 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 } });