mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: better net.show output
This commit is contained in:
parent
3e15e13027
commit
7965cece7f
4 changed files with 105 additions and 45 deletions
|
@ -23,6 +23,14 @@ func NewTargets(s *Session, iface, gateway *net.Endpoint) *Targets {
|
|||
}
|
||||
}
|
||||
|
||||
func (tp *Targets) Lock() {
|
||||
tp.lock.Lock()
|
||||
}
|
||||
|
||||
func (tp *Targets) Unlock() {
|
||||
tp.lock.Unlock()
|
||||
}
|
||||
|
||||
func (tp *Targets) Remove(ip, mac string) {
|
||||
tp.lock.Lock()
|
||||
defer tp.lock.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue