1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Take out "other" in "X other hosts had status Y" in http-vhosts.nse. It

looks funny when it's the only line and I think it still looks fine this
way when there are multiple lines.
This commit is contained in:
david
2010-12-08 00:54:46 +00:00
parent e947e5dedf
commit 528681c04a

View File

@@ -499,7 +499,7 @@ local collapse = function(result)
local limit = tonumber(stdnse.get_script_args("http-vhosts.collapse")) or 10
for code, group in next, result do
if #group > limit then
collapsed[#collapsed + 1] = #group .. " other names had status " .. code
collapsed[#collapsed + 1] = #group .. " names had status " .. code
else
for _,name in ipairs(group) do
collapsed[#collapsed + 1] = name