2019-09-10 16:00:56 +00:00
|
|
|
-- Copyright 2018 - 2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
2018-01-19 13:22:01 +00:00
|
|
|
-- Licensed to the public under the Apache License 2.0.
|
|
|
|
|
|
|
|
module("luci.controller.glorytun", package.seeall)
|
|
|
|
|
|
|
|
function index()
|
|
|
|
if not nixio.fs.access("/etc/config/glorytun") then
|
|
|
|
return
|
|
|
|
end
|
2019-09-10 16:00:56 +00:00
|
|
|
--entry({"admin", "services", "glorytun"}, cbi("glorytun"), _("Glorytun") )
|
|
|
|
--entry({"admin", "services", "glorytun", "settings"}, cbi("glorytun-settings"), nil ).leaf = true
|
|
|
|
entry({"admin", "vpn", "glorytun"}, cbi("glorytun"), _("Glorytun") )
|
|
|
|
entry({"admin", "vpn", "glorytun", "settings"}, cbi("glorytun-settings"), nil ).leaf = true
|
2018-01-19 13:22:01 +00:00
|
|
|
end
|