new: gateway.change event for MITM monitoring

This commit is contained in:
Simone Margaritelli 2021-04-10 22:59:03 +02:00
parent 43a93fd866
commit c47e3f6195
8 changed files with 144 additions and 5 deletions

View file

@ -129,6 +129,8 @@ func (mod *EventsStream) Render(output io.Writer, e session.Event) {
mod.viewUpdateEvent(output, e)
} else if strings.HasPrefix(e.Tag, "graph.") {
mod.viewGraphEvent(output, e)
} else if e.Tag == "gateway.change" {
mod.viewGatewayEvent(output, e)
} else if e.Tag != "tick" {
fmt.Fprintf(output, "[%s] [%s] %v\n", e.Time.Format(mod.timeFormat), tui.Green(e.Tag), e)
}