summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua')
-rw-r--r--applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua6
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