mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
d5fb7b6754
commit
3c506b7809
6 changed files with 9 additions and 10 deletions
|
@ -111,7 +111,8 @@ func (mod *Prober) Start() error {
|
|||
return
|
||||
}
|
||||
|
||||
list, err := iprange.Parse(mod.Session.Interface.CIDR())
|
||||
cidr := mod.Session.Interface.CIDR()
|
||||
list, err := iprange.Parse(cidr)
|
||||
if err != nil {
|
||||
mod.Fatal("%s", err)
|
||||
}
|
||||
|
@ -125,6 +126,8 @@ func (mod *Prober) Start() error {
|
|||
addresses := list.Expand()
|
||||
throttle := time.Duration(mod.throttle) * time.Millisecond
|
||||
|
||||
mod.Info("probing %d addresses on %s", len(addresses), cidr)
|
||||
|
||||
for mod.Running() {
|
||||
if mod.probes.MDNS {
|
||||
mod.sendProbeMDNS(fromIP, fromHW)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue