1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Fix a typo in the regex that was truncating the version string.

This commit is contained in:
tomsellers
2014-12-20 01:34:26 +00:00
parent d5af9560c3
commit 742444b87d

View File

@@ -141,7 +141,7 @@ action = function(host, port)
if output['version'] then
-- Look for the version string from the official ntpd and format it
-- in a manner similar to the output of the standard Nmap version detection
local version_num = string.match(output['version'],"^ntpd ([^@]+)")
local version_num = string.match(output['version'],"^ntpd ([^ ]+)")
if version_num then
port.version.version = "v" .. version_num
nmap.set_port_version(host, port, "hardmatched")