refact: refactored module params management

This commit is contained in:
evilsocket 2018-01-08 01:38:13 +01:00
commit 1b3cc9fbca
4 changed files with 48 additions and 15 deletions

View file

@ -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.",