diff options
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua')
-rw-r--r-- | applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua index ed6f4f4da..56221e043 100644 --- a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua +++ b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua @@ -1,7 +1,10 @@ module("luci.controller.vpnbypass", package.seeall) function index() - if not nixio.fs.access("/etc/config/vpnbypass") then - return + if nixio.fs.access("/etc/config/vpnbypass") then + if luci.dispatcher.lookup("admin/vpn") then + entry({"admin", "vpn", "vpnbypass"}, cbi("vpnbypass"), _("VPN Bypass")) + else + entry({"admin", "services", "vpnbypass"}, cbi("vpnbypass"), _("VPN Bypass")) + end end - entry({"admin", "services", "vpnbypass"}, cbi("vpnbypass"), _("VPN Bypass")) end |