1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 18:09:01 +00:00

PROTOCOL_IDS is a table. Fixes #1999, closes #2005

This commit is contained in:
nnposter
2020-04-14 18:11:23 +00:00
parent 5b6645e09d
commit 351eea1986
2 changed files with 4 additions and 1 deletions

View File

@@ -405,7 +405,7 @@ local function generate_aggressive(port, protocol, id, diffie)
0x00, -- Next Payload (None)
#id + 4 + 4, -- Payload length
0x03, -- ID Type (USER_FQDN)
PROTOCOL_IDS(protocol), -- Protocol ID (UDP)
PROTOCOL_IDS[protocol], -- Protocol ID (UDP)
port) -- Port (500)
.. id
)