Fix a test for the return value of ipOps.isPrivate in the hostrule which was

causing an unnecessary debug message: "Error in Hostrule: 127/8".
This commit is contained in:
jah 2010-08-05 20:36:27 +00:00
parent 919f13738a
commit d67b6d9c10

View file

@ -94,7 +94,7 @@ local stdnse = require "stdnse"
hostrule = function( host )
local is_private, err = ipOps.isPrivate( host.ip )
if err then
if is_private == nil then
stdnse.print_debug( "%s Error in Hostrule: %s.", filename, err )
return false
end