don't hide vpn hosts, only hide links
This commit is contained in:
parent
a0adb74269
commit
5484c34581
|
@ -186,7 +186,7 @@ var linkedByIndex
|
||||||
|
|
||||||
var force = d3.layout.force()
|
var force = d3.layout.force()
|
||||||
.charge(-100)
|
.charge(-100)
|
||||||
.gravity(0.02)
|
.gravity(0.07)
|
||||||
.friction(0.75)
|
.friction(0.75)
|
||||||
.theta(0.1)
|
.theta(0.1)
|
||||||
.size([w, h])
|
.size([w, h])
|
||||||
|
|
|
@ -174,10 +174,7 @@ class NodeDB:
|
||||||
node.name = alias['name']
|
node.name = alias['name']
|
||||||
|
|
||||||
if 'vpn' in alias and alias['vpn']:
|
if 'vpn' in alias and alias['vpn']:
|
||||||
node.flags['vpn'] = True
|
node.interfaces[mac].vpn = True
|
||||||
|
|
||||||
for k, v in node.interfaces.items():
|
|
||||||
node.interfaces[k].vpn = "vpn"
|
|
||||||
|
|
||||||
# list of macs
|
# list of macs
|
||||||
# if options['gateway']:
|
# if options['gateway']:
|
||||||
|
|
Loading…
Reference in a new issue