From 5484c34581e6c189b34de15d77ed9e5f6fcf8c0e Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 12 Jun 2012 02:26:41 +0200 Subject: [PATCH] don't hide vpn hosts, only hide links --- html/force.js | 2 +- nodedb.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/html/force.js b/html/force.js index 6b9b741..cd7379e 100644 --- a/html/force.js +++ b/html/force.js @@ -186,7 +186,7 @@ var linkedByIndex var force = d3.layout.force() .charge(-100) - .gravity(0.02) + .gravity(0.07) .friction(0.75) .theta(0.1) .size([w, h]) diff --git a/nodedb.py b/nodedb.py index 85af51a..f0befcc 100644 --- a/nodedb.py +++ b/nodedb.py @@ -174,10 +174,7 @@ class NodeDB: node.name = alias['name'] if 'vpn' in alias and alias['vpn']: - node.flags['vpn'] = True - - for k, v in node.interfaces.items(): - node.interfaces[k].vpn = "vpn" + node.interfaces[mac].vpn = True # list of macs # if options['gateway']: