1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Replace host.ip, port.number with host, port

In most cases (e.g. any of the nmap.socket operations), functions can
take full host and port tables instead of just host.ip and port.number.
This makes for cleaner-looking code and easier extensibility if we
decide to check for a protocol on both TCP and UDP, for instance.
This commit is contained in:
dmiller
2015-02-18 14:38:42 +00:00
parent cc351c6f27
commit 6139ed22e7
23 changed files with 41 additions and 41 deletions

View File

@@ -50,7 +50,7 @@ portrule = shortport.port_or_service({
});
action = function (host, port)
local registry = rmi.Registry:new(host.ip, port.number);
local registry = rmi.Registry:new(host, port);
registry:_handshake();
local rmiArgs = rmi.Arguments:new();
local argsRaw = "75" .. --TC_ARRAY