mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 11:40:33 -07:00
new: implemented POST /api/session route (ref #5).
This commit is contained in:
parent
c2826c9094
commit
ee4b783015
2 changed files with 46 additions and 10 deletions
|
@ -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
|
||||
}))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue