mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: new limit optional argument for events.show
This commit is contained in:
parent
1353c47056
commit
3c2932514a
4 changed files with 37 additions and 24 deletions
|
@ -185,9 +185,11 @@ func (tp *Targets) AddIfNew(ip, mac string) *bnet.Endpoint {
|
|||
}
|
||||
|
||||
e := bnet.NewEndpoint(ip, mac)
|
||||
e.ResolvedCallback = func(e *bnet.Endpoint) {
|
||||
tp.Session.Events.Add("endpoint.resolved", e)
|
||||
}
|
||||
/*
|
||||
e.ResolvedCallback = func(e *bnet.Endpoint) {
|
||||
tp.Session.Events.Add("endpoint.resolved", e)
|
||||
}
|
||||
*/
|
||||
|
||||
if alias, found := tp.Aliases[mac]; found {
|
||||
e.Alias = alias
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue