mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 03:25:13 +08:00
🍕 Sync 2026-06-29 08:46:17
This commit is contained in:
1 parent
d16630f75b
commit
ea7617e5dd
20 files changed
+329
-31
No files matched your search
@@ -17,9 +17,11 @@ function virtualdog_status()
|
||||
local sys = require "luci.sys"
|
||||
local uci = require "luci.model.uci".cursor()
|
||||
local port = uci:get_first("virtualdog", "virtualdog", "port") or "8080"
|
||||
local access_token = uci:get_first("virtualdog", "virtualdog", "access_token") or ""
|
||||
local status = {
|
||||
running = (sys.call("pidof virtualdogd >/dev/null") == 0),
|
||||
port = port
|
||||
port = port,
|
||||
access_token = access_token
|
||||
}
|
||||
http.prepare_content("application/json")
|
||||
http.write_json(status)
|
||||
|
||||
Reference in new issue
Block a user