mirror of
https://github.com/bettercap/bettercap.git
synced 2025-09-06 22:27:49 +00:00
new: added CAN to session json object
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user