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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user