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 /main.go | |
| parent | c3e8971e30e39757d63cc440b0ba2ed68bb97533 (diff) | |
add enough to support libvirt Spice
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -121,9 +121,11 @@ func handleConnection(clientConn net.Conn, where string, localport int) { // make a new event from this new connection log.Printf("Connected on port %d from client: %s to where = %s\n", localport, clientConn.RemoteAddr(), where) e := new(Event) - e.Address = fmt.Sprintf("%s\n", clientConn.RemoteAddr()) - e.Where = where + e.Etype = GusEventType_Connect e.LocalPort = int64(localport) + e.Sock = new(GusSocket) + e.Sock.SrcIp = fmt.Sprintf("%s", clientConn.RemoteAddr()) + e.Sock.DestIp = where e.Ctime = timestamppb.New(time.Now()) me.events.Append(e) me.eventsChanged = true |
