luci-app-ssocks: move to services

This commit is contained in:
CN_SZTL 2020-09-12 19:18:51 +08:00
parent 7bd43a44e6
commit 3f4b8ab3d7
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 3 additions and 3 deletions

View File

@ -9,10 +9,10 @@ function index()
return
end
local page
page = entry({"admin", "vpn", "ssocks"}, cbi("ssocks"), _("sSocks Server"), 100)
page = entry({"admin", "services", "ssocks"}, cbi("ssocks"), _("sSocks Server"), 100)
page.i18n = "ssocks"
page.dependent = true
entry({"admin", "vpn", "ssocks", "status"},call("act_status")).leaf=true
entry({"admin", "services", "ssocks", "status"},call("act_status")).leaf=true
end
function act_status()

View File

@ -1,5 +1,5 @@
<script type="text/javascript">//<![CDATA[
XHR.poll(3, '<%=url([[admin]], [[vpn]], [[ssocks]], [[status]])%>', null,
XHR.poll(3, '<%=url([[admin]], [[services]], [[ssocks]], [[status]])%>', null,
function(x, data) {
var tb = document.getElementById('ssocks_status');
if (data && tb) {