new: new -caplets-path argument to specify an alternative caplets base path (closes #850)

This commit is contained in:
Simone Margaritelli 2021-03-23 19:05:58 +01:00
commit d63122bab3
3 changed files with 27 additions and 6 deletions

View file

@ -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
}