mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -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)
|
||||
}
|
||||
|
||||
if by == "address" {
|
||||
sort.Sort(ByAddressSorter(targets))
|
||||
} else if by == "seen" {
|
||||
if by == "seen" {
|
||||
sort.Sort(BySeenSorter(targets))
|
||||
} else if by == "sent" {
|
||||
sort.Sort(BySentSorter(targets))
|
||||
} else if by == "rcvd" {
|
||||
sort.Sort(ByRcvdSorter(targets))
|
||||
} else {
|
||||
sort.Sort(ByAddressSorter(targets))
|
||||
}
|
||||
|
||||
data = make([][]string, nTargets)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue