mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
refact: some refactoring to proxy modules
This commit is contained in:
parent
195650777f
commit
291e87de39
11 changed files with 332 additions and 315 deletions
|
@ -89,6 +89,10 @@ func (s *Session) activeHandler(args []string, sess *Session) error {
|
|||
}
|
||||
|
||||
func (s *Session) exitHandler(args []string, sess *Session) error {
|
||||
for _, mod := range s.Modules {
|
||||
mod.Stop()
|
||||
}
|
||||
|
||||
s.Active = false
|
||||
s.Input.Close()
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue