new: better net.show output

This commit is contained in:
evilsocket 2018-01-13 21:26:21 +01:00
commit 7965cece7f
4 changed files with 105 additions and 45 deletions

View file

@ -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()