From 312fa6b8fd30f915799f25925dd649baba371c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Mon, 28 Mar 2016 22:24:12 +0200 Subject: [PATCH] q&d solution for uplinks --- lib/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/main.js b/lib/main.js index af80014..5931aec 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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) {