diff options
Diffstat (limited to 'windowEvents.go')
| -rw-r--r-- | windowEvents.go | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/windowEvents.go b/windowEvents.go index e13df5b..1608635 100644 --- a/windowEvents.go +++ b/windowEvents.go @@ -55,7 +55,7 @@ func makeEventsWin() { all := me.events.All() for all.Scan() { e := all.Next() - if strings.HasPrefix(e.Address, "192.168") { + if strings.HasPrefix(e.Sock.SrcIp, "192.168") { continue } found.Append(e) @@ -114,8 +114,18 @@ func AddEventsPB(tbox *gui.Node, pb *Events) *EventsTable { t.AddStringFunc("etime", etimef) t.AddHostname() - t.AddAddress() - t.AddWhere() + t.AddStringFunc("src ip", func(e *Event) string { + if e.Sock != nil { + return e.Sock.SrcIp + } + return "" + }) + t.AddStringFunc("dest ip", func(e *Event) string { + if e.Sock != nil { + return e.Sock.DestIp + } + return "" + }) t.AddLocalPort() t.ShowTable() return t |
