mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
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:
parent
94959c42e2
commit
0936515cd9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue