mirror of
https://github.com/bettercap/bettercap
synced 2025-07-05 20:42:09 -07:00
new: added CAN to session json object
This commit is contained in:
parent
0202028524
commit
3ec7b01bed
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ type SessionJSON struct {
|
|||
WiFi *network.WiFi `json:"wifi"`
|
||||
BLE *network.BLE `json:"ble"`
|
||||
HID *network.HID `json:"hid"`
|
||||
CAN *network.CAN `json:"can"`
|
||||
Queue *packets.Queue `json:"packets"`
|
||||
StartedAt time.Time `json:"started_at"`
|
||||
PolledAt time.Time `json:"polled_at"`
|
||||
|
@ -95,6 +96,7 @@ func (s *Session) MarshalJSON() ([]byte, error) {
|
|||
WiFi: s.WiFi,
|
||||
BLE: s.BLE,
|
||||
HID: s.HID,
|
||||
CAN: s.CAN,
|
||||
Queue: s.Queue,
|
||||
StartedAt: s.StartedAt,
|
||||
PolledAt: time.Now(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue