fix: reporting alias and mac address for endpoint.lost events

This commit is contained in:
evilsocket 2019-01-31 11:56:17 +01:00
commit 91391a77f2
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -104,10 +104,12 @@ func (s *EventsStream) viewendpointEvent(e session.Event) {
tui.Green(t.HwAddress),
tui.Dim(vend))
} else if e.Tag == "endpoint.lost" {
fmt.Fprintf(s.output, "[%s] [%s] endpoint %s%s lost.\n",
fmt.Fprintf(s.output, "[%s] [%s] endpoint %s%s %s%s lost.\n",
e.Time.Format(eventTimeFormat),
tui.Green(e.Tag),
tui.Red(t.IpAddress),
tui.Dim(name),
tui.Green(t.HwAddress),
tui.Dim(vend))
} else {
fmt.Fprintf(s.output, "[%s] [%s] %s\n",