Fixes a WARNING: ntop_lua_http_print(): Lua type 2 is not handled

An attempt to resolve the name of a nil value was causing the error.
This commit is contained in:
Simone Mainardi 2016-02-15 21:49:35 +01:00
parent aa592508d3
commit 9e5c843abe

View file

@ -429,7 +429,7 @@ var populatePeersPerHostByApplication = function(host, proto_id){
// this is the entry point for the navigation that starts at hosts
var populateHostTopAppsTable = function(host){
emptyAppsBreadCrumb();
$("#bc-apps").append('<li>Protocols spoken by ]] print(ntop.getResolvedAddress(host)) print [[</li>');
$("#bc-apps").append('<li>Protocols spoken by ' + host +'</li>');
hideAll("app-talkers");
hideAll("peers-by-app");