mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 05:22:04 -07:00
11 lines
345 B
Go
11 lines
345 B
Go
package modules
|
|
|
|
import (
|
|
"github.com/evilsocket/bettercap-ng/net"
|
|
)
|
|
|
|
type ByAddressSorter []*net.Endpoint
|
|
|
|
func (a ByAddressSorter) Len() int { return len(a) }
|
|
func (a ByAddressSorter) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
|
func (a ByAddressSorter) Less(i, j int) bool { return a[i].IpAddressUint32 < a[j].IpAddressUint32 }
|