From d67b6d9c10b310ab886c78c8c6615209d5bcd8bb Mon Sep 17 00:00:00 2001 From: jah Date: Thu, 5 Aug 2010 20:36:27 +0000 Subject: [PATCH] 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". --- scripts/whois.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/whois.nse b/scripts/whois.nse index 30909677e..d06342323 100644 --- a/scripts/whois.nse +++ b/scripts/whois.nse @@ -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