Fixes web interface DNS protocol visualization issues

This commit is contained in:
Simone Mainardi 2016-06-21 16:17:01 +02:00
parent 79f778ab59
commit e33ed413d2
2 changed files with 9 additions and 9 deletions

View file

@ -135,7 +135,7 @@ for key, value in ipairs(flows_stats) do
if((flows_stats[key]["cli.host"] ~= vhost)
and (flows_stats[key]["srv.host"] ~= vhost)
and (flows_stats[key]["http.server_name"] ~= vhost)
and (flows_stats[key]["dns.last_query"] ~= vhost)) then
and (flows_stats[key]["protos.dns.last_query"] ~= vhost)) then
process = false
end
end
@ -267,8 +267,8 @@ for key, value in ipairs(flows_stats) do
if(debug and (not process)) then io.write("Stop Host\n") end
info = ""
if(flows_stats[key]["dns.last_query"] ~= nil) then
info = shortenString(flows_stats[key]["dns.last_query"])
if(flows_stats[key]["protos.dns.last_query"] ~= nil) then
info = shortenString(flows_stats[key]["protos.dns.last_query"])
elseif(flows_stats[key]["http.last_url"] ~= nil) then
info = shortenString(flows_stats[key]["http.last_url"])
elseif(flows_stats[key]["protos.ssl.certificate"] ~= nil) then