diff --git a/files/usr/local/bin/mgr/lqm.lua b/files/usr/local/bin/mgr/lqm.lua index 2c2ae956..7ba21404 100755 --- a/files/usr/local/bin/mgr/lqm.lua +++ b/files/usr/local/bin/mgr/lqm.lua @@ -490,6 +490,7 @@ function lqm() device = station.device, firstseen = now, lastseen = now, + lastrouted = now, pending = now + pending_timeout, refresh = 0, mac = station.mac, @@ -689,6 +690,7 @@ function lqm() local rt = track.ip and ip.route(track.ip) or nil if rt and tostring(rt.gw) == track.ip then track.routable = true + track.lastrouted = now else track.routable = false end diff --git a/files/www/cgi-bin/lqm b/files/www/cgi-bin/lqm index 0abd7d08..1a58be13 100755 --- a/files/www/cgi-bin/lqm +++ b/files/www/cgi-bin/lqm @@ -220,7 +220,9 @@ html.print([[
} break; } - links += `
${name(track)}${track.type}${get_snr(track)}${distance}${quality}${status}
`; + if (track.lastrouted + 3600 > data.info.now && (status !== "idle" || track.hostname)) { + links += `
${name(track)}${track.type}${get_snr(track)}${distance}${quality}${status}
`; + } }); if (links.length) { document.getElementById("links").innerHTML = links;