mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Fix status page error abproxy disabled when MPTCP over VPN is used on all interfaces
This commit is contained in:
parent
76430cd440
commit
2ea13ecfaa
1 changed files with 8 additions and 2 deletions
|
@ -1035,10 +1035,16 @@ function interfaces_status()
|
|||
end
|
||||
|
||||
mArray.openmptcprouter["shadowsocks_enabled"] = true
|
||||
local ss_server = uci:get("shadowsocks-libev","sss0","disabled") or "0"
|
||||
local ss_server = "1"
|
||||
ucic:foreach("shadowsocks-libev", "server", function(s)
|
||||
if uci:get("shadowsocks-libev",s[".name"],"disabled") == "0" then
|
||||
ss_server = "0"
|
||||
end
|
||||
end)
|
||||
if ss_server == "1" then
|
||||
mArray.openmptcprouter["shadowsocks_enabled"] = false
|
||||
end
|
||||
|
||||
-- check V2Ray is running
|
||||
mArray.openmptcprouter["v2ray_service"] = false
|
||||
if string.find(sys.exec("/usr/bin/pgrep v2ray"), "%d+") then
|
||||
|
|
Loading…
Reference in a new issue