mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: net.recon default sorting is by address
This commit is contained in:
parent
72d855f57e
commit
35891c0615
1 changed files with 3 additions and 3 deletions
|
@ -228,14 +228,14 @@ func (d *Discovery) Show(by string) error {
|
||||||
targets = append(targets, t)
|
targets = append(targets, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
if by == "address" {
|
if by == "seen" {
|
||||||
sort.Sort(ByAddressSorter(targets))
|
|
||||||
} else if by == "seen" {
|
|
||||||
sort.Sort(BySeenSorter(targets))
|
sort.Sort(BySeenSorter(targets))
|
||||||
} else if by == "sent" {
|
} else if by == "sent" {
|
||||||
sort.Sort(BySentSorter(targets))
|
sort.Sort(BySentSorter(targets))
|
||||||
} else if by == "rcvd" {
|
} else if by == "rcvd" {
|
||||||
sort.Sort(ByRcvdSorter(targets))
|
sort.Sort(ByRcvdSorter(targets))
|
||||||
|
} else {
|
||||||
|
sort.Sort(ByAddressSorter(targets))
|
||||||
}
|
}
|
||||||
|
|
||||||
data = make([][]string, nTargets)
|
data = make([][]string, nTargets)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue