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

Only display interface with mptcp enabled in mptcp check

This commit is contained in:
Ycarus 2018-08-18 09:19:32 +02:00
parent 606a74124e
commit 18468f06c1
3 changed files with 9 additions and 5 deletions

View file

@ -812,10 +812,11 @@ function _ipv6_discover(interface)
return ra6_result
end
function mptcp_check_trace(interface)
function mptcp_check_trace(iface)
luci.http.prepare_content("text/plain")
local tracebox
local uci = require "luci.model.uci".cursor()
local interface = get_device(iface)
local server = uci:get("shadowsocks-libev", "sss0", "server") or ""
if server == "" then return end
if interface == "" then