#!/usr/bin/lua
--[[
Part of AREDN® -- Used for creating Amateur Radio Emergency Data Networks
Copyright (C) 2022-2024 Tim Wilkinson
See Contributors file for additional contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
Provide a server name to run a test between this client and a server [/cgi-bin/traceroute?server=<ServerName>") elseif server:match("[^%w%-%.]") then print("
Illegal server name") else if not server:match("%.") then server = server .. ".local.mesh" end local running = io.popen("/bin/traceroute -q 1 -w 1 " .. server .. " 2>&1") if not running then print("
traceroute failed") else print("
Client: " .. node .. "\nServer: " .. server) io.flush() for line in running:lines() do print(line) io.flush() end running:close() print("") end end