mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 21:42:06 -07:00
balls
This commit is contained in:
parent
c6d4c2a616
commit
72d855f57e
1 changed files with 10 additions and 1 deletions
|
@ -2,6 +2,7 @@ package modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap-ng/log"
|
"github.com/evilsocket/bettercap-ng/log"
|
||||||
|
@ -66,7 +67,15 @@ func (p *Prober) shouldProbe(ip net.IP) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Prober) sendProbe(from net.IP, from_hw net.HardwareAddr, ip net.IP) {
|
func (p *Prober) sendProbe(from net.IP, from_hw net.HardwareAddr, ip net.IP) {
|
||||||
p.sendProbeUDP(from, from_hw, ip)
|
var wg sync.WaitGroup
|
||||||
|
|
||||||
|
wg.Add(1)
|
||||||
|
go func(w *sync.WaitGroup) {
|
||||||
|
p.sendProbeUDP(from, from_hw, ip)
|
||||||
|
w.Done()
|
||||||
|
}(&wg)
|
||||||
|
|
||||||
|
wg.Wait()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Prober) Configure() error {
|
func (p *Prober) Configure() error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue