refact: some refactoring to proxy modules

This commit is contained in:
evilsocket 2018-01-11 19:53:14 +01:00
commit 291e87de39
11 changed files with 332 additions and 315 deletions

View file

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