mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Fix o.current_scantype management for traceroute. If you were scanning
only one host it used to be unset, so the ScanProgressMeter would say "Host Discovery" or something rather than "Traceroute".
This commit is contained in:
parent
47bbcc165f
commit
8c9b905682
1 changed files with 5 additions and 3 deletions
|
|
@ -733,19 +733,21 @@ Traceroute::trace (vector < Target * >&Targets) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (o.current_scantype != REF_TRACEROUTE)
|
||||
o.current_scantype = TRACEROUTE;
|
||||
|
||||
/* perform the reference trace first */
|
||||
if (Targets.size () > 1) {
|
||||
o.current_scantype = TRACEROUTE;
|
||||
o.current_scantype = REF_TRACEROUTE;
|
||||
for (targ = Targets.begin (); targ != Targets.end (); ++targ) {
|
||||
reference.push_back (*targ);
|
||||
sendTTLProbes (reference, valid_targets);
|
||||
if (valid_targets.size ()) {
|
||||
o.current_scantype = REF_TRACEROUTE;
|
||||
this->trace (valid_targets);
|
||||
o.current_scantype = TRACEROUTE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
o.current_scantype = TRACEROUTE;
|
||||
}
|
||||
|
||||
/* guess hop distance to targets. valid_targets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue