mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Use iperf3 in diag
This commit is contained in:
parent
338c8865ec
commit
8dfbd211ae
3 changed files with 18 additions and 1 deletions
|
@ -153,6 +153,9 @@ function index()
|
|||
page = entry({"admin", "network", "diag_traceroute6"}, post("diag_traceroute6"), nil)
|
||||
page.leaf = true
|
||||
|
||||
page = entry({"admin", "network", "diag_iperf3"}, post("diag_iperf3"), nil)
|
||||
page.leaf = true
|
||||
|
||||
page = entry({"admin", "network", "diag_speedtest"}, post("diag_speedtest"), nil)
|
||||
page.leaf = true
|
||||
-- end
|
||||
|
@ -431,6 +434,10 @@ function diag_traceroute6(addr)
|
|||
diag_command("traceroute6 -q 1 -w 2 -n %q 2>&1", addr)
|
||||
end
|
||||
|
||||
function diag_iperf3(addr)
|
||||
diag_command("iperf3 -c %q 2>&1", addr)
|
||||
end
|
||||
|
||||
function diag_speedtest(addr)
|
||||
if addr then
|
||||
diag_command("speedtestc --server %q 2>&1", addr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue