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"

This commit is contained in:
jah 2012-08-21 01:16:49 +00:00
parent 94959c42e2
commit 0936515cd9

View file

@ -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 = {}