mirror of https://github.com/aredn/aredn.git
Filter lan name from node hosts (#1669)
This commit is contained in:
parent
72655d2d9e
commit
668234b799
|
@ -68,7 +68,7 @@ if (h) {
|
||||||
first = true;
|
first = true;
|
||||||
}
|
}
|
||||||
const host = v[2];
|
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) {
|
if (!first) {
|
||||||
print(",");
|
print(",");
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ if (h) {
|
||||||
}
|
}
|
||||||
first = false;
|
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");
|
fallback = replace(host, /^dtdlink\.(.+)\.local\.mesh$/, "$1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue