diff options
| author | Jeff Carr <[email protected]> | 2025-03-11 07:23:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-11 12:16:21 -0500 |
| commit | c325f872178779f51390d7265efc50fe6fac8235 (patch) | |
| tree | 8fd6911ed8827437208e09d9ee12c50941a43a9b /windowEvents.go | |
| parent | c3e8971e30e39757d63cc440b0ba2ed68bb97533 (diff) | |
add enough to support libvirt Spice
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 |
