From d0c5fb2dabbc1d26146839c0e4aa6b67b0336fe7 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Sun, 14 May 2017 00:50:20 +0200 Subject: [PATCH] [BUGFIX] check for gateways without mesh --- lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index ca34e48..887dfbc 100644 --- a/lib/main.js +++ b/lib/main.js @@ -87,7 +87,7 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'], nodes.forEach(function (d) { d.neighbours = []; - if (d.flags.gateway) { + if (d.flags.gateway && d.nodeinfo.network.mesh) { var mesh = d.nodeinfo.network.mesh; mesh[Object.keys(mesh)[0]].interfaces.tunnel.forEach(function (mac) { gateways[mac] = d.nodeinfo.hostname;