forcegraph, main: l2tp support
This commit is contained in:
parent
2a78af4208
commit
2f28c51da1
2 changed files with 15 additions and 11 deletions
12
lib/main.js
12
lib/main.js
|
|
@ -113,9 +113,13 @@ function (moment, Router, L, GUI, numeral) {
|
|||
})
|
||||
|
||||
links.forEach( function (d) {
|
||||
if (d.type === "tunnel")
|
||||
d.type = "VPN"
|
||||
else if (d.type === "wireless")
|
||||
console.log(d)
|
||||
if (d.type === "tunnel" || d.type === "fastd")
|
||||
d.type = "fastd"
|
||||
else if (d.type === "l2tp") {
|
||||
d.type = "L2TP"
|
||||
d.target.node.flags.uplink = true
|
||||
} else if (d.type === "wireless")
|
||||
d.type = "Wifi"
|
||||
else if (d.type === "other")
|
||||
d.type = "Kabel"
|
||||
|
|
@ -128,7 +132,7 @@ function (moment, Router, L, GUI, numeral) {
|
|||
}
|
||||
d.source.node.neighbours.push({ node: d.target.node, link: d, incoming: false })
|
||||
d.target.node.neighbours.push({ node: d.source.node, link: d, incoming: true })
|
||||
if (d.type !== "VPN")
|
||||
if (d.type !== "fastd" && d.type !== "L2TP")
|
||||
d.source.node.meshlinks = d.source.node.meshlinks ? d.source.node.meshlinks + 1 : 1
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue