mirror of
https://github.com/bettercap/bettercap
synced 2025-07-08 05:51:37 -07:00
misc: decoupled session record loading to external package
This commit is contained in:
parent
b743b26dde
commit
126cb7febf
78 changed files with 2063 additions and 490 deletions
|
@ -7,6 +7,8 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/bettercap/recording"
|
||||
|
||||
"github.com/evilsocket/islazy/fs"
|
||||
)
|
||||
|
||||
|
@ -45,7 +47,7 @@ func (mod *RestAPI) recorder() {
|
|||
mod.recTime = 0
|
||||
mod.recording = true
|
||||
mod.replaying = false
|
||||
mod.record = NewRecord(mod.recordFileName, nil)
|
||||
mod.record = recording.New(mod.recordFileName)
|
||||
|
||||
mod.Info("started recording to %s (clock %s) ...", mod.recordFileName, clock)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue