new: dns.spoof now supports a hosts file with multiple mappings (closes #344)

This commit is contained in:
evilsocket 2018-09-20 14:42:10 +02:00
commit d16b0c7cf5
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 131 additions and 43 deletions

View file

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