luci-base: network.js: register "none" protocol
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
4eeded7051
commit
7c9d1a259c
1 changed files with 4 additions and 0 deletions
|
@ -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 } });
|
||||
|
|
Loading…
Reference in a new issue