diff options
author | Stan Grishin <stangri@melmac.net> | 2019-11-18 16:01:58 -0700 |
---|---|---|
committer | Stan Grishin <stangri@melmac.net> | 2019-11-18 16:01:58 -0700 |
commit | 5a730115856ac8ae4461f402da39b0c05321b712 (patch) | |
tree | 8a2bc2c9cbaed96006931cd6b8fd63fd74415296 /applications/luci-app-vpnbypass/luasrc/controller | |
parent | b1cb0d6d59c84a16f084e8ec91714a3d247a2700 (diff) |
luci-app-vpnbypass: use VPN node by default
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/controller')
-rw-r--r-- | applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua index dac02d84d6..c971ce6517 100644 --- a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua +++ b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua @@ -1,10 +1,8 @@ module("luci.controller.vpnbypass", package.seeall) function index() if nixio.fs.access("/etc/config/vpnbypass") then - local node = "services" - if luci.dispatcher.lookup("admin/vpn") then node = "vpn" end - entry({"admin", node, "vpnbypass"}, cbi("vpnbypass"), _("VPN Bypass")) - entry({"admin", node, "vpnbypass", "action"}, call("vpnbypass_action"), nil).leaf = true + entry({"admin", "vpn", "vpnbypass"}, cbi("vpnbypass"), _("VPN Bypass")) + entry({"admin", "vpn", "vpnbypass", "action"}, call("vpnbypass_action"), nil).leaf = true end end |