Add missing .local.mesh to neighbor links (#363)

This commit is contained in:
Tim Wilkinson 2022-05-19 08:51:41 -07:00 committed by GitHub
parent b23ab5ee8a
commit 3f3b71b10c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -147,8 +147,11 @@ html.print([[<hr>
return "idle"; return "idle";
} }
const name = track => { const name = track => {
if (track.hostname || track.ip) { if (track.hostname) {
return `<a href="http://${track.hostname || track.ip}:8080">${track.hostname || track.ip}</a>`; return `<a href="http://${track.hostname}.local.mesh:8080">${track.hostname}</a>`;
}
if (track.ip) {
return `<a href="http://${track.ip}:8080">${track.ip}</a>`;
} }
return track.mac || "-"; return track.mac || "-";
} }