mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Reduce vertical space from http-server-header
This commit is contained in:
@@ -19,13 +19,12 @@ correctly.
|
|||||||
--
|
--
|
||||||
-- PORT STATE SERVICE VERSION
|
-- PORT STATE SERVICE VERSION
|
||||||
-- 80/tcp open http Unidentified Server 1.0
|
-- 80/tcp open http Unidentified Server 1.0
|
||||||
-- | http-server-header:
|
-- |_ http-server-header: Unidentified Server 1.0
|
||||||
-- | Server:
|
|
||||||
-- |_ Unidentified Server 1.0
|
|
||||||
--
|
--
|
||||||
--@xmloutput
|
--@xmloutput
|
||||||
--<table key="Server">
|
--<table key="Server">
|
||||||
-- <elem>Unidentified Server 1.0</elem>
|
-- <elem>Unidentified Server 1.0</elem>
|
||||||
|
-- <elem>SomeOther Server</elem>
|
||||||
--</table>
|
--</table>
|
||||||
|
|
||||||
author = "Daniel Miller"
|
author = "Daniel Miller"
|
||||||
@@ -95,8 +94,8 @@ action = function(host, port)
|
|||||||
out_s[#out_s+1] = s == "" and "<empty>" or s
|
out_s[#out_s+1] = s == "" and "<empty>" or s
|
||||||
end
|
end
|
||||||
if next(out) then
|
if next(out) then
|
||||||
|
table.sort(out)
|
||||||
table.sort(out_s)
|
table.sort(out_s)
|
||||||
table.insert(out_s, 1, "\nServer:")
|
return out, ((#out > 1) and "\n " or "") .. table.concat(out_s, "\n ")
|
||||||
return {Server=out}, table.concat(out_s, "\n ")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user