new: implemented POST /api/session route (ref #5).

This commit is contained in:
evilsocket 2018-01-08 04:26:19 +01:00
parent c2826c9094
commit ee4b783015
2 changed files with 46 additions and 10 deletions

View file

@ -141,6 +141,7 @@ func (s *Session) registerCoreHandlers() {
"Close the session and exit.",
func(args []string, s *Session) error {
s.Active = false
s.Input.Close()
return nil
}))