main
E. Almqvist 2 years ago
parent e81a0d9b2b
commit d351be6961
  1. 2
      src/ipv4.rs
  2. 7
      src/scanner.rs

@ -71,7 +71,7 @@ impl IPv4Range {
Self { Self {
id_start: from, id_start: from,
id_end: to, id_end: to,
id_ignore: id_ignore.to_vec() id_ignore: id_ignore.to_vec(),
} }
} }
} }

@ -70,12 +70,7 @@ fn start_scan(
let id_ignorelist = ignorelist.unwrap().cloned().unwrap_or_else(Vec::new()); let id_ignorelist = ignorelist.unwrap().cloned().unwrap_or_else(Vec::new());
// Create a worker // Create a worker
let worker = create_scan_worker( let worker = create_scan_worker(thread_id, ips_per_thread, target_port, id_ignorelist);
thread_id,
ips_per_thread,
target_port,
id_ignorelist
);
threads.push(worker); threads.push(worker);
} }

Loading…
Cancel
Save