mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
progress
This commit is contained in:
parent
756dc3d71a
commit
67cc9680ed
17 changed files with 1833 additions and 274 deletions
|
@ -118,7 +118,7 @@ func (mod *Prober) Start() error {
|
|||
}
|
||||
|
||||
if mod.probes.MDNS {
|
||||
go mod.mdnsProber()
|
||||
mod.Session.Run("mdns.discovery on")
|
||||
}
|
||||
|
||||
fromIP := mod.Session.Interface.IP
|
||||
|
@ -129,9 +129,6 @@ func (mod *Prober) Start() error {
|
|||
mod.Info("probing %d addresses on %s", len(addresses), cidr)
|
||||
|
||||
for mod.Running() {
|
||||
if mod.probes.MDNS {
|
||||
mod.sendProbeMDNS(fromIP, fromHW)
|
||||
}
|
||||
|
||||
if mod.probes.UPNP {
|
||||
mod.sendProbeUPNP(fromIP, fromHW)
|
||||
|
@ -160,6 +157,10 @@ func (mod *Prober) Start() error {
|
|||
|
||||
func (mod *Prober) Stop() error {
|
||||
return mod.SetRunning(false, func() {
|
||||
if mod.probes.MDNS {
|
||||
mod.Session.Run("mdns.discovery off")
|
||||
}
|
||||
|
||||
mod.waitGroup.Wait()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue