re-add uplink detection, this time generic
fixes l2tp uplink detection
This commit is contained in:
parent
808b8c1986
commit
5599be5cd6
|
@ -157,6 +157,10 @@ function (moment, Router, L, GUI, numeral) {
|
||||||
d.type = "N/A"
|
d.type = "N/A"
|
||||||
d.isVPN = false
|
d.isVPN = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (d.isVPN && d.target.node)
|
||||||
|
d.target.node.flags.uplink = true
|
||||||
|
|
||||||
var unknown = (d.source.node === undefined)
|
var unknown = (d.source.node === undefined)
|
||||||
if (unknown) {
|
if (unknown) {
|
||||||
d.target.node.neighbours.push({ id: d.source.id, link: d, incoming: true })
|
d.target.node.neighbours.push({ id: d.source.id, link: d, incoming: true })
|
||||||
|
|
Loading…
Reference in a new issue