mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 23:19:03 +00:00
more stdnse.print_debug -> stdnse.debug
$ sed -i 's/stdnse.print_debug( *\([0-9]*\) *, *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.debug\1("\2"/' *.nse
$ sed -i 's/stdnse.print_debug( *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
This commit is contained in:
@@ -36,7 +36,7 @@ categories = {"discovery","external","safe"}
|
||||
hostrule = function(host)
|
||||
local is_private, err = ipOps.isPrivate( host.ip )
|
||||
if is_private == nil then
|
||||
stdnse.print_debug( "%s not running: Error in Hostrule: %s.", SCRIPT_NAME, err )
|
||||
stdnse.debug1("not running: Error in Hostrule: %s.", err )
|
||||
return false
|
||||
elseif is_private then
|
||||
stdnse.debug1("not running: Private IP address of target: %s", host.ip)
|
||||
|
||||
Reference in New Issue
Block a user