mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: new -caplets-path argument to specify an alternative caplets base path (closes #850)
This commit is contained in:
parent
161124a3f4
commit
d63122bab3
3 changed files with 27 additions and 6 deletions
|
@ -224,6 +224,12 @@ func (s *Session) Start() error {
|
|||
return s.Modules[i].Name() < s.Modules[j].Name()
|
||||
})
|
||||
|
||||
if *s.Options.CapletsPath != "" {
|
||||
if err = caplets.Setup(*s.Options.CapletsPath); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if s.Interface, err = network.FindInterface(*s.Options.InterfaceName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue