mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix MPTCP check
This commit is contained in:
parent
82027c8a95
commit
065298afbd
2 changed files with 7 additions and 3 deletions
|
@ -673,10 +673,14 @@ function interfaces_status()
|
||||||
if multipath_available_state ~= "" then
|
if multipath_available_state ~= "" then
|
||||||
multipath_available = 'OK'
|
multipath_available = 'OK'
|
||||||
else
|
else
|
||||||
|
if mArray.openmptcprouter["service_addr"] ~= "" then
|
||||||
multipath_available_state_wan = ut.trim(sys.exec("omr-mptcp-intf " .. ifname .. " | grep 'Nay, Nay, Nay'"))
|
multipath_available_state_wan = ut.trim(sys.exec("omr-mptcp-intf " .. ifname .. " | grep 'Nay, Nay, Nay'"))
|
||||||
|
else
|
||||||
|
multipath_available_state_wan = "none"
|
||||||
|
end
|
||||||
if multipath_available_state_wan == "" then
|
if multipath_available_state_wan == "" then
|
||||||
multipath_available = 'OK'
|
multipath_available = 'OK'
|
||||||
mArray.openmptcprouter["server_mptcp"] = false
|
mArray.openmptcprouter["server_mptcp"] = "disabled"
|
||||||
else
|
else
|
||||||
multipath_available = 'ERROR'
|
multipath_available = 'ERROR'
|
||||||
if mArray.openmptcprouter["socks_service"] == true and connectivity == "OK" then
|
if mArray.openmptcprouter["socks_service"] == true and connectivity == "OK" then
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
{
|
{
|
||||||
statusMessage += 'ShadowSocks not working<br/>';
|
statusMessage += 'ShadowSocks not working<br/>';
|
||||||
}
|
}
|
||||||
if (mArray.openmptcprouter.server_mptcp == false)
|
if (mArray.openmptcprouter.server_mptcp == "disabled")
|
||||||
{
|
{
|
||||||
statusMessage += 'MPTCP not enabled on the server<br/>';
|
statusMessage += 'MPTCP not enabled on the server<br/>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue