mirror of https://github.com/aredn/aredn.git
Add client/server at top of data for easier understanding (#602)
This commit is contained in:
parent
ea0c057eeb
commit
9da5d7b8cc
|
@ -69,5 +69,5 @@ else
|
||||||
server = server .. ".local.mesh"
|
server = server .. ".local.mesh"
|
||||||
end
|
end
|
||||||
os.execute("wget -q 'http://" .. server .. ":8080/cgi-bin/iperf?server=' > /dev/null 2>&1")
|
os.execute("wget -q 'http://" .. server .. ":8080/cgi-bin/iperf?server=' > /dev/null 2>&1")
|
||||||
print("<html><head><title>iperf</title></head><body><pre>" .. io.popen("/usr/bin/iperf3 -b 0 -c " .. server .. (protocol == "udp" and " -u" or "") .. " 2>&1"):read("*a") .. "</pre></body></html>")
|
print("<html><head><title>iperf</title></head><body><pre>Client: " .. node .. "\nServer: " .. server .. "\n" .. io.popen("/usr/bin/iperf3 -b 0 -c " .. server .. (protocol == "udp" and " -u" or "") .. " 2>&1"):read("*a") .. "</pre></body></html>")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue