re-add uplink detection, this time generic

fixes l2tp uplink detection
This commit is contained in:
Milan Pssler 2016-11-05 21:44:57 +01:00
parent 808b8c1986
commit 5599be5cd6

View file

@ -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 })