mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix update VPS
This commit is contained in:
parent
95b9da9ffc
commit
93a74f9f9d
2 changed files with 3 additions and 2 deletions
|
@ -1111,7 +1111,7 @@ function update_vps()
|
|||
local update_vps = luci.http.formvalue("flash") or ""
|
||||
if update_vps ~= "" then
|
||||
local ut = require "luci.util"
|
||||
local result = ut.ubus("openmptcprouter", "update_vps", {})
|
||||
local result = ut.ubus("openmptcprouter", "updateVPS", {})
|
||||
end
|
||||
return
|
||||
end
|
||||
|
|
|
@ -535,7 +535,8 @@ function update_vps()
|
|||
local vpsgettoken = sys.exec("/etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null")
|
||||
ucic:foreach("openmptcprouter", "server", function(section)
|
||||
local servername = section[".name"]
|
||||
local serverip = section["ip"] or ""
|
||||
local serverips = section["ip"]
|
||||
local serverip = serverips[1]
|
||||
local adminport = section["port"] or "65500"
|
||||
local token = section["token"] or ""
|
||||
if token ~= "" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue