From 0936515cd9bf890cbac395c0ae9296fe25824a39 Mon Sep 17 00:00:00 2001 From: jah Date: Tue, 21 Aug 2012 01:16:49 +0000 Subject: [PATCH] Restored the hyphen character, in get_ips_from_range, to a lua string pattern for ip ranges such as "10.0.0.0 - 10.1.0.0" --- nselib/ipOps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/ipOps.lua b/nselib/ipOps.lua index 9e5f8ff02..e165b34a5 100644 --- a/nselib/ipOps.lua +++ b/nselib/ipOps.lua @@ -444,7 +444,7 @@ get_ips_from_range = function( range ) if range:match( "/" ) then first, prefix = range:match( "([%x%d:%.]+)/(%d+)" ) elseif range:match( "-" ) then - first, last = range:match( "([%x%d:%.]+)%s*%.%s*([%x%d:%.]+)" ) + first, last = range:match( "([%x%d:%.]+)%s*%-%s*([%x%d:%.]+)" ) end local err = {}