Merge pull request #3749 from Ansuel/fix_relayd
[project/luci.git] / modules / luci-base / htdocs / luci-static / resources / network.js
index 0cd4f29bc4d5aa3b3a28f25a37aed87d0e05aaf5..bca67849b43e28d80f676289c5152665244c0712 100644 (file)
@@ -108,7 +108,7 @@ function getProtocolHandlers(cache) {
                        Object.assign(protos, { none: { no_device: false } });
 
                /* Hack: emulate relayd protocol */
-               if (!protos.hasOwnProperty('relay'))
+               if (!protos.hasOwnProperty('relay') && L.hasSystemFeature('relayd'))
                        Object.assign(protos, { relay: { no_device: true } });
 
                Object.assign(_protospecs, protos);