1
0
mirror of https://github.com/bettercap/bettercap.git synced 2025-03-12 04:36:03 -07:00
This commit is contained in:
evilsocket 2018-01-29 12:31:25 +01:00
parent 7abb3cbb2c
commit 7981ab168e

@ -13,9 +13,8 @@ func (a ByAddressSorter) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a ByAddressSorter) Less(i, j int) bool {
if a[i].IpAddressUint32 == a[j].IpAddressUint32 {
return a[i].HwAddress < a[j].HwAddress
} else {
return a[i].IpAddressUint32 < a[j].IpAddressUint32
}
return a[i].IpAddressUint32 < a[j].IpAddressUint32
}
type BySeenSorter []*net.Endpoint