diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -86,9 +86,17 @@ data.name = strip(data.hostname); data.interfaces = _.map( - _.groupBy(data.addresses, function(x) { - return x.interface; - }), function(obj, key) { obj.device = key; return obj; }); + _.groupBy( + _.filter(data.addresses, function(x) { + return typeof x.vserver == 'undefined'; + }), + function(x) { + return x.interface; + }), + function(obj, key) { + obj.device = key; + return obj; + }); $.Mustache.load('./templates/host.html').done(function () { $('#content').mustache('hostinfo', data, {method: 'html'}); |