1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 21:09:00 +00:00

Now works for udp again. The port table has a "protocol" field, not "proto".

This commit is contained in:
jah
2009-03-13 03:41:28 +00:00
parent 91956287c2
commit de922ab69c

View File

@@ -14,7 +14,7 @@ require "shortport"
portrule = shortport.port_or_service(13, "daytime", {"tcp", "udp"})
action = function(host, port)
local status, result = comm.exchange(host, port, "dummy", {lines=1, proto=port.proto})
local status, result = comm.exchange(host, port, "dummy", {lines=1, proto=port.protocol})
if status then
return result