mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
refact: refactored module params management
This commit is contained in:
parent
0cbe0f8782
commit
1b3cc9fbca
4 changed files with 48 additions and 15 deletions
|
@ -18,7 +18,9 @@ func NewProber(s *session.Session) *Prober {
|
|||
SessionModule: session.NewSessionModule(s),
|
||||
}
|
||||
|
||||
p.AddParam(session.NewIntParameter("net.probe.throttle", "10", "", "If greater than 0, probe packets will be throttled by this value in milliseconds."))
|
||||
p.AddParam(session.NewIntParameter("net.probe.throttle",
|
||||
"10",
|
||||
"If greater than 0, probe packets will be throttled by this value in milliseconds."))
|
||||
|
||||
p.AddHandler(session.NewModuleHandler("net.probe on", "",
|
||||
"Start network hosts probing in background.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue