q&d solution for uplinks

This commit is contained in:
Milan Pässler 2016-03-28 22:24:12 +02:00
parent be01654f08
commit 312fa6b8fd

View file

@ -113,13 +113,13 @@ function (moment, Router, L, GUI, numeral) {
})
links.forEach( function (d) {
if (d.type === "tunnel")
d.type = "VPN"
else if (d.type === "wireless")
if (d.type === "wireless")
d.type = "Wifi"
else if (d.type === "other")
else if (d.type === "other") {
d.type = "VPN"
else
if (d.target.node)
d.target.node.flags.uplink = true
} else
d.type = "N/A"
var unknown = (d.source.node === undefined)
if (unknown) {