1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Fix MPTCP check

This commit is contained in:
Ycarus 2018-08-09 22:02:20 +02:00
parent 82027c8a95
commit 065298afbd
2 changed files with 7 additions and 3 deletions

View file

@ -673,10 +673,14 @@ function interfaces_status()
if multipath_available_state ~= "" then
multipath_available = 'OK'
else
if mArray.openmptcprouter["service_addr"] ~= "" then
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
multipath_available = 'OK'
mArray.openmptcprouter["server_mptcp"] = false
mArray.openmptcprouter["server_mptcp"] = "disabled"
else
multipath_available = 'ERROR'
if mArray.openmptcprouter["socks_service"] == true and connectivity == "OK" then

View file

@ -110,7 +110,7 @@
{
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/>';
}