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