Signed-off-by: Stan Grishin <stangri@melmac.net>
LUCI_DESCRIPTION:=Provides Web UI for VPNBypass service.
LUCI_DEPENDS:=+luci-mod-admin-full +vpnbypass
LUCI_PKGARCH:=all
-PKG_RELEASE:=9
+PKG_RELEASE:=10
include ../../luci.mk
sys.init.enable(packageName)
sys.init.start(packageName)
end
- http.redirect(dispatcher.build_url("admin/services/" .. packageName))
+ if dispatcher.lookup("admin/vpn") then
+ http.redirect(dispatcher.build_url("admin/vpn/" .. packageName))
+ else
+ http.redirect(dispatcher.build_url("admin/services/" .. packageName))
+ end
end
s = m:section(NamedSection, "config", "vpnbypass", translate("VPN Bypass Rules"))