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;