This commit is contained in:
evilsocket 2018-02-08 01:27:07 +01:00
commit 4cd1fb14d7
2 changed files with 3 additions and 3 deletions

View file

@ -49,8 +49,6 @@ func (f WindowsFirewall) EnableForwarding(enabled bool) error {
return fmt.Errorf("Unexpected netsh output: %s", out)
}
fmt.Printf("%s\n", out)
return nil
}

View file

@ -95,7 +95,9 @@ 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()
if mod.Running() {
mod.Stop()
}
}
s.Active = false