mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: dns.spoof now supports a hosts file with multiple mappings (closes #344)
This commit is contained in:
parent
3ed4db132c
commit
d16b0c7cf5
4 changed files with 131 additions and 43 deletions
|
@ -62,8 +62,8 @@ func (p *EventPool) Listen() <-chan Event {
|
|||
// make sure, without blocking, the new listener
|
||||
// will receive all the queued events
|
||||
go func() {
|
||||
for _, e := range p.events {
|
||||
l <- e
|
||||
for i := len(p.events) - 1; i >= 0; i-- {
|
||||
l <- p.events[i]
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue