mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Move random address generation to TargetGroup/NetBlock
This commit is contained in:
parent
019557382b
commit
b940270375
8 changed files with 53 additions and 18 deletions
3
nmap.cc
3
nmap.cc
|
|
@ -2078,7 +2078,8 @@ int nmap_main(int argc, char *argv[]) {
|
|||
|
||||
if (o.ping_group_sz < o.minHostGroupSz())
|
||||
o.ping_group_sz = o.minHostGroupSz();
|
||||
HostGroupState hstate(o.ping_group_sz, o.randomize_hosts, argc, (const char **) argv);
|
||||
HostGroupState hstate(o.ping_group_sz, o.randomize_hosts,
|
||||
o.generate_random_ips ? o.max_ips_to_scan : 0, argc, (const char **) argv);
|
||||
|
||||
do {
|
||||
ideal_scan_group_sz = determineScanGroupSize(o.numhosts_scanned, &ports);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue