Filter lan name from node hosts (#1669)

This commit is contained in:
Tim Wilkinson 2024-11-02 17:28:54 -07:00 committed by GitHub
parent 72655d2d9e
commit 668234b799
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ if (h) {
first = true;
}
const host = v[2];
if (index(host, "mid") !== 0 && index(host, "dtdlink") !== 0 && index(host, "xlink") !== 0) {
if (index(host, "mid") !== 0 && index(host, "dtdlink.") !== 0 && index(host, "xlink") !== 0 && index(host, "lan.") !== 0) {
if (!first) {
print(",");
}
@ -80,7 +80,7 @@ if (h) {
}
first = false;
}
else if (originator === "myself" && index(host, "dtdlink") === 0) {
else if (originator === "myself" && index(host, "dtdlink.") === 0) {
fallback = replace(host, /^dtdlink\.(.+)\.local\.mesh$/, "$1");
}
}