luci-base: fix error 404 on missing relay protocol 3749/head
authorAnsuel Smith <ansuelsmth@gmail.com>
Thu, 12 Mar 2020 15:46:53 +0000 (16:46 +0100)
committerAnsuel Smith <ansuelsmth@gmail.com>
Thu, 12 Mar 2020 15:46:53 +0000 (16:46 +0100)
commit3d70d3e5d786383b8754200cf065713b191bdead
tree1295e8459cf9b8c8fc9aae8c2b0c9ba0c55bda7b
parentd8e1aef1505496a04631550363ce83bb0147c0a9
luci-base: fix error 404 on missing relay protocol

Currently relay.js is included in any case even if
the router doesn't have the needed package to use it.
Fix this by checking if the system has this feature.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
modules/luci-base/htdocs/luci-static/resources/network.js