mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
2d26f77acb
commit
3182896cb5
1 changed files with 2 additions and 3 deletions
|
@ -88,6 +88,7 @@ func (p *Prober) Start() error {
|
|||
from := p.Session.Interface.IP
|
||||
from_hw := p.Session.Interface.HW
|
||||
addresses := list.Expand()
|
||||
throttle := time.Duration(p.throttle) * time.Millisecond
|
||||
|
||||
for p.Running() {
|
||||
for _, ip := range addresses {
|
||||
|
@ -98,9 +99,7 @@ func (p *Prober) Start() error {
|
|||
|
||||
p.sendProbe(from, from_hw, ip)
|
||||
|
||||
if p.throttle > 0 {
|
||||
time.Sleep(time.Duration(p.throttle) * time.Millisecond)
|
||||
}
|
||||
time.Sleep(throttle)
|
||||
}
|
||||
|
||||
time.Sleep(5 * time.Second)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue